How to: rotate an ellipse
How to: rotate an ellipse
I need to draw rotated ellipses on a jpg image using GdPicture7.
I see that there is a GdPictureImaging.DrawRotatedRectangle method, but not an equivalent one for ellipses.
Any idea to achieve it?
Thanks!
I see that there is a GdPictureImaging.DrawRotatedRectangle method, but not an equivalent one for ellipses.
Any idea to achieve it?
Thanks!
Re: How to: rotate an ellipse
Meanwhile I've tried using arcs, beziers... no way.
I can create a new image, draw an ellipse on it, rotate the image and publish the image on the other, but performance is too low.
I'm starting to think that it's not possible: panic!
I can create a new image, draw an ellipse on it, rotate the image and publish the image on the other, but performance is too low.
I'm starting to think that it's not possible: panic!
Re: How to: rotate an ellipse
Hi,
You have 2 options:
- 1 drawing the ellipse on an empty bitmap, rotate the image by specific angle then merge your 2 images (as you said, this is slow)
- 2 using GDI+. You can get a graphics object from a gdpicture image using the GetGraphicsFromGdPictureImage. Use GDI+ to draw your stuff on the graphics object, the dispose it.
- And 3 (not yet implemented). We will add a drawrotatedellipse function on the next release for convenience.
Kind regards,
Loïc
You have 2 options:
- 1 drawing the ellipse on an empty bitmap, rotate the image by specific angle then merge your 2 images (as you said, this is slow)
- 2 using GDI+. You can get a graphics object from a gdpicture image using the GetGraphicsFromGdPictureImage. Use GDI+ to draw your stuff on the graphics object, the dispose it.
- And 3 (not yet implemented). We will add a drawrotatedellipse function on the next release for convenience.
Kind regards,
Loïc
Re: How to: rotate an ellipse
Thank you Loic, I used the second method you suggested.
Thank you!
Thank you!
Who is online
Users browsing this forum: Bing [Bot] and 1 guest