473,326 Members | 2,012 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

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 4600
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: KathyB | last post by:
If someone could just explain this to me...I just don't get it! I have an aspx page where I retrieve several session variables and use xmlDocument to transform xml file with xsl file into an...
3
by: Christopher Ambler | last post by:
This has to be a FAQ, but I can't seem to find the answer anywhere! I have an application that consumes a web service that returns me a string full of XML. I also have an XSLT for outputting the...
3
by: Rouven Hertenstein | last post by:
Hi, I'm trying to test the vb.net-exercise "How to use a DataSet with the Office XP Chart Component and ASP.NET" on http://support.microsoft.com/kb/303016/en-us Visual Studio rails against the...
3
by: Daniel | last post by:
in C# how do i transform an xml document with an xsl document when my xml document is a string and my xsl document is a string? the msdn examples only show how to do it with steams and files. in my...
1
by: steve | last post by:
I am trying to create an XSLT Transform but keep getting the same problem. Overload resolution failed because no accessible 'Transform' can be called with these arguments. I create a reference...
0
by: dnphamus13 | last post by:
I'm new to this and drowning right now. I would like to put my database online for viewing. I managed to do the filtering but i need to do PAGING as the XML doc get bigger. From what i understand...
1
by: Mike Hofer | last post by:
I've got two statements in my code that are both generating weird, weird, weird messages: The first one was, Dim document As System.Xml.XmlDocument Dim navigator As...
12
by: InvalidLastName | last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example: // javascript if (a &gt; b)...
1
by: Tyler Eaves | last post by:
Hi, wondering if anyone can help me with this. I'm trying to do some math for a reasonably simple bit of 3d math. Given the following. A 3d vector pointing in an arbitrary direction, call it...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.