473,728 Members | 2,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4613
I assume you are using the GDI + wrapper of System.Drawing. dll.

You may call TranslateTransf orm 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
3608
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 instruction document (not data based) - same as using an xml web control. The resulting html is on the client? but what about the server side of things? Trying to figure out how to change and save the xmlDocument. It I put a button OUTSIDE of the...
3
17706
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 XML. I need to take that string, apply the XSLT to it, and get the output into a string suitable for writing out to a tcp port. Essentially, an XML string, transformed into another string.
3
2382
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 expression: "xslTran.Transform(xmlDoc_ds, Nothing, context.Response.Output)" and comments: "Public Sub Transform(input As System.Xml.XPath.IXPathNavigable, args As
3
1805
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 case i have everything in string
1
4021
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 to System.Xml.dll Here is the code Imports System.Xml Imports System.Xml.Xsl.XslTransform
0
2149
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 this is what I need to do; transform the current XML doc with the filterring xsl, then somehow add the paging xsl. That's the part i'm having trouble with. I'm using JavaScript to apply the filterring XSL to XML doc. Filterring is based on what...
1
1859
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 System.Xml.XPath.XPathNavigator Dim transform As System.Xml.Xsl.XslTransform .. ..
12
10112
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) ..... // xsl contents abc.aspx?p1=v1&amp;p2=<xsl:value-of select="$v2" />
1
1511
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 'forward', that defines the target Z-axis, and a rotation around that vector, 'roll', which defines the target Y axis. These define the 'target' coordinate system.
0
8911
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9426
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9280
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9200
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6719
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2673
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.