469,625 Members | 1,088 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

transform coordinate system

Hello.

I want to set my coordinate-system-origin (0/ 0) to the bottom-left corner.
How is that done in C# the best way?

Thanks a lot in advance!
Greetings,
Tim.
Nov 16 '05 #1
4 4413
I assume you are using the GDI + wrapper of System.Drawing.dll.

You may call TranslateTransform on the System.Drawing.Graphics instance
to perform a translation.
--
Regards,
Dennis JD Myrén
Oslo Kodebureau
"Tim Bücker" <ti*************@web.de> wrote in message
news:cj***********@news.uni-koblenz.de...
Hello.

I want to set my coordinate-system-origin (0/ 0) to the bottom-left
corner.
How is that done in C# the best way?

Thanks a lot in advance!
Greetings,
Tim.

Nov 16 '05 #2
You need both a negative scaling in the y dimension and a transform
equivalent to the height of the document. This post has code for you:

http://www.windowsforms.com/Forums/S...41&PostID=5587

Regards,
Frank Hileman

check out VG.net: www.vgdotnet.com
Animated vector graphics system
Integrated Visual Studio .NET graphics editor

"Tim Bücker" <ti*************@web.de> wrote in message
news:cj***********@news.uni-koblenz.de...
Hello.

I want to set my coordinate-system-origin (0/ 0) to the bottom-left corner. How is that done in C# the best way?

Thanks a lot in advance!
Greetings,
Tim.

Nov 16 '05 #3
Thanks for the fast replies!

Greetings and thanks,
Tim.

"Tim Bücker" <ti*************@web.de> schrieb im Newsbeitrag
news:cj***********@news.uni-koblenz.de...
Hello.

I want to set my coordinate-system-origin (0/ 0) to the bottom-left corner. How is that done in C# the best way?

Thanks a lot in advance!
Greetings,
Tim.

Nov 16 '05 #4
The GDI+ FAQ has an answer to this one and also explains how to get text to
come out the right way up after you've performed the transform

--
Bob Powell [MVP]
Visual C#, System.Drawing

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml


"Tim Bücker" <ti*************@web.de> wrote in message
news:cj***********@news.uni-koblenz.de...
Hello.

I want to set my coordinate-system-origin (0/ 0) to the bottom-left corner. How is that done in C# the best way?

Thanks a lot in advance!
Greetings,
Tim.

Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Rouven Hertenstein | last post: by
1 post views Thread by Tyler Eaves | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.