Re: draw a line from 0 to 52 does the last pixel of the line show?
- From: "Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 27 Mar 2008 22:12:19 +0100
In the default mode, a unit in world coordinates maps to a single pixel on the screen. By changing the page units to, say inch, point or millimeter the world units will correspond to the chosen standard.
--
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"AAaron123" <aaaron123@xxxxxxxxxxxxxx> wrote in message news:%23vbgEsEkIHA.1188@xxxxxxxxxxxxxxxxxxxxxxx
So each pixel has a index.
Not like a ruler where 0-1 is 1 inch; not 2.
Seems I remember years ago that Petzold said that with the win32 0-1 was one pixel, but I'm not sure about that.
Thanks for the info!
"Bob Powell [MVP]" <bob@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:FA132638-AA7D-4705-811B-3DA6BDE4D6AD@xxxxxxxxxxxxxxxxNo because the window pixel range is zero based so the reange will be from
0-51 = 52 pixels wide.
--
Bob Powell [MVP]
Visual C#, System.Drawing
Ramuseco Limited .NET consulting
http://www.ramuseco.com
Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm
Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm
All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
"AAaron123" <aaaron123@xxxxxxxxxxxxxx> wrote in message news:%23VGxt11jIHA.5208@xxxxxxxxxxxxxxxxxxxxxxxIf I have a panel with a client sizes of 52x52 and I draw a line from 0 to 52 does the last pixel of the line show?
Thanks in advance
.
- Follow-Ups:
- References:
- draw a line from 0 to 52 does the last pixel of the line show?
- From: AAaron123
- Re: draw a line from 0 to 52 does the last pixel of the line show?
- From: Bob Powell [MVP]
- Re: draw a line from 0 to 52 does the last pixel of the line show?
- From: AAaron123
- draw a line from 0 to 52 does the last pixel of the line show?
- Prev by Date: Re: draw a line from 0 to 52 does the last pixel of the line show?
- Next by Date: Re: draw a line from 0 to 52 does the last pixel of the line show?
- Previous by thread: Re: draw a line from 0 to 52 does the last pixel of the line show?
- Next by thread: Re: draw a line from 0 to 52 does the last pixel of the line show?
- Index(es):
Relevant Pages
|