PC Review


Reply
Thread Tools Rate Thread

How to draw an ellipse with an rotated angle?

 
 
Shalley
Guest
Posts: n/a
 
      6th Sep 2003
Hello, there,

I have no idea how to draw an ellipse with an rotated
angle. For example, the ellipse's center is (20.0, 50.0),
two conjugate diameter pairs end-point are (35.0, 35.0),
(25.0, 55.0). I hope to use win32 API functions to finish
this drawing. Is it possible?

Please help me giving your suggestion. Tks.
 
Reply With Quote
 
 
 
 
One Handed Man [ OHM ]
Guest
Posts: n/a
 
      6th Sep 2003
Graphics.RotateTransform Method


"Shalley" <(E-Mail Removed)> wrote in message
news:2daf01c374a7$c5b48b50$(E-Mail Removed)...
> Hello, there,
>
> I have no idea how to draw an ellipse with an rotated
> angle. For example, the ellipse's center is (20.0, 50.0),
> two conjugate diameter pairs end-point are (35.0, 35.0),
> (25.0, 55.0). I hope to use win32 API functions to finish
> this drawing. Is it possible?
>
> Please help me giving your suggestion. Tks.



 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      6th Sep 2003
Shalley,
In addition to One Handed Man's comment about Graphics.RotateTransform, you
may need to take into account Graphics.ScaleTransform &
Graphics.TranslateTransform (TranslateTransform more so than
ScaleTransform).

RotateTransform will rotate about the current origin, TranslateTransform
moves the current origin.

I find Charles Petzold's book "Programming Microsoft Windows with Microsoft
Visual Basic .NET" from MS Press to be very helpful in unraveling the
subtleties of GDI+.

Just remember order of operations is important while doing transforms in
GDI+.

Hope this helps
Jay

"Shalley" <(E-Mail Removed)> wrote in message
news:2daf01c374a7$c5b48b50$(E-Mail Removed)...
> Hello, there,
>
> I have no idea how to draw an ellipse with an rotated
> angle. For example, the ellipse's center is (20.0, 50.0),
> two conjugate diameter pairs end-point are (35.0, 35.0),
> (25.0, 55.0). I hope to use win32 API functions to finish
> this drawing. Is it possible?
>
> Please help me giving your suggestion. Tks.



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      7th Sep 2003
Hello,

"Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> schrieb:
> Just remember order of operations is important while doing
> transforms in GDI+.


That depends on the type of the operations.

;-)

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
http://www.mvps.org/dotnet


 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      7th Sep 2003
Herfried,
> That depends on the type of the operations.

And if you use the MatrixOrder parameter & which MatrixOrder option. ;-)

Later
Jay

"Herfried K. Wagner [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
>
> "Jay B. Harlow [MVP - Outlook]" <(E-Mail Removed)> schrieb:
> > Just remember order of operations is important while doing
> > transforms in GDI+.

>
> That depends on the type of the operations.
>
> ;-)
>
> --
> Herfried K. Wagner
> MVP · VB Classic, VB.NET
> http://www.mvps.org/dotnet
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I draw an ellipse on excel, or can I? M Microsoft Excel Charting 1 9th Apr 2010 09:32 PM
Draw an Ellipse on a Report Kaykayme Microsoft Access VBA Modules 4 28th Apr 2009 04:30 PM
Draw ellipse with specify x,y,width, height Slickuser Microsoft C# .NET 4 29th Nov 2007 05:17 PM
how to Draw an ellipse using c# weird0 Microsoft C# .NET 2 16th Oct 2007 11:20 AM
a rotated ellipse jg Microsoft Dot NET Compact Framework 4 6th Jan 2004 03:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:10 PM.