473,326 Members | 2,095 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.

Coordinate system to bottom left

Hello.

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



thanks.
Nov 6 '08 #1
3 1518
Plater
7,872 Expert 4TB
You have to formulate it I believe.
When Y=2 you would really want "Height - 2", etc
Nov 6 '08 #2
You have to formulate it I believe.
When Y=2 you would really want "Height - 2", etc
Well i use this
g.TranslateTransform(0,Picturebox.height) where g is Graphics...But This is of no use can u suggest me some sample codes.
Nov 7 '08 #3
Plater
7,872 Expert 4TB
Well Like I said:
Expand|Select|Wrap|Line Numbers
  1. int ProduceX(int x, Control c)
  2. {
  3.    return c.Width-x;
  4. }
  5.  
  6. int ProduceY(int y, Control c)
  7. {
  8.    return c.Height-y;
  9. }
  10.  
you could combine them into a single function that returns a Point, or you could do by ref and just change them to correct values
Nov 7 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Tim Bücker | last post by:
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.
7
by: Randy Vande Hei | last post by:
Does anyone know how to change the the GDI+ coordinate system like you used to be able to do in VB6 with the picturebox.scale method. The picturebox.scale method took an x,y point defining the...
1
by: OtisUsenet | last post by:
Hello, Is there a way to use JavaScript to push a page element (a DIV block, for example) down the screen, so it sits at the bottom of the browser window. For example of a bad footer...
0
by: jigsmshah | last post by:
I need to print a text file .When i print it ,it is not printed exactly form 0,0 coordiante of the page. I mean the top most left corner.It is leaving some margin from top and from left.The code is...
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
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: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
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: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
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.