Re: draw a line from 0 to 52 does the last pixel of the line show?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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@xxxxxxxxxxxxxxxx
No 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@xxxxxxxxxxxxxxxxxxxxxxx
If 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







.



Relevant Pages

  • Re: Fast and simple way to determine bounds of difference...
    ... That should help with the basic transfer of pixel data. ... rectangle of the image difference, ... Find great Windows Forms articles in Windows Forms Tips and Tricks ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Custom Zoom & Performance
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... the scaled pixel ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: brightness adjusting on black & white images vb.net
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... I've got code to read & set each pixel, ...
    (microsoft.public.dotnet.languages.vb)
  • Re: brightness adjusting on black & white images vb.net
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... I've got code to read & set each pixel, ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Printing graphics/text that span multiple pages
    ... Find great Windows Forms articles in Windows Forms Tips and Tricks ... Answer those GDI+ questions with the GDI+ FAQ ... You need to figure out how many pages you need and then render your ...
    (microsoft.public.dotnet.framework.drawing)