Draw rotated ellipse?

Feb 10, 2014 at 9:11 AM
I need to draw rotated ellipses. It seems this is not supported by the library. How can I extend DrawEllipse with this feature? (Performance is top priority.)

Please advise!
Coordinator
Feb 10, 2014 at 9:17 AM
What do you mean rotated? If you rotate throught the z axis, then just provide different x, y value, you can compute those with an angle feeding into sin and cos.
Feb 10, 2014 at 9:38 AM
I want to simulate this WPF code:
<Ellipse.RotateTransform>
<RotateTransform Angle="30" />
</Ellipse.RotateTransform>

Thus, rotating around the center of the ellipse. I suppose that's the Z axis. Are you saying that x and y should be multiplied with cos(30 deg) and sin(30 deg) inside the loop?
Coordinator
Feb 10, 2014 at 10:11 AM
What you want is a rotation after, so use the WBX RotateFree method after drawing the shape to the WB.
Feb 10, 2014 at 10:37 AM
And if there are multiple ellipses? Do I need one WBX for each ellipse that will later be combined into one larger WBX?