-
I would like to draw arrows with varying orientation and location onto an image. My basic code is
and it's functioning. Of course it would be more straightforward if I would define the 'pure' arrow and assign the offset (an possibly orientation) later, preferably in a function with the object and the desired location and orientation as parameters. The PointD list is however write protected; this is why I directly calculated the absolute coordinates when creating the list. Using the SVG version of IM's drawing strategies, which directly uses relative coordinates, moving the arrow symbol becomes easier, the essential part of the code now being:
AFAIK, SVG doesn't offer a mechanism to rotate the coordinate system (?). Again, the PointD list is write protected. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
How would you do this on the command line? |
Beta Was this translation helpful? Give feedback.
Aah okay just wanted to make sure you didn't have an issue translating something from the command line to C# code. I made classes immutable where that made sense. But now I am wondering if I should not allow you to change the values of a
PointD
element. Looking at the code I don't see a good reason why you are not allowed to do this.