Mombu the Programming Forum

Go Back   Mombu the Programming Forum > Programming > draw a line from 0 to 52 does the last pixel of the line show?
User Name
Password
REGISTER NOW! Mark Forums Read




Reply Bookmark and Share
1 28th April 18:10
bob powell [mvp]
External User
 
Posts: 1
Default draw a line from 0 to 52 does the last pixel of the line show?



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.
  Reply With Quote


 


2 28th April 18:10
aaaron123
External User
 
Posts: 1
Default draw a line from 0 to 52 does the last pixel of the line show?



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!
  Reply With Quote
3 28th April 18:10
bob powell [mvp]
External User
 
Posts: 1
Default draw a line from 0 to 52 does the last pixel of the line show?


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.
  Reply With Quote
4 28th April 18:11
aaaron123
External User
 
Posts: 1
Default draw a line from 0 to 52 does the last pixel of the line show?


thanks
  Reply With Quote
Reply


Thread Tools
Display Modes


Some other forums that might be of your interest : Development, Ada, Apple script, Assembler, Awk, Beos, Basic, C, C++, C#, C# .net, .net, .net frameworks, Asp .net, Clarion, Clipper, Clos, Clu, Cobol, Coldfusion, Delphi, Dylan, Eiffel, Forth, Fortran, Haskell, Hermes, Icon, Idl, Java, Java script, Jscript .net, Jcl, Linoleum, Lisp, Lotus, Limbo, Logo, Ml, Mumps, Oberon, Postscript, Pop, Pl1, Prolog, Python, Ruby, Pascal, Perl, Php, Rebol, Rexx, Sed, Sather, Scheme, Smalltalk, Tcl, Vhdl, Vrml, Visual basic, Visual basic .net, Yorick, Mysql, Omnis, Postgresql, Xbase, Access, Oracle, Adabas, Berkeley, Btrieve, Filemaker, Gupta, Db2, Informix, Ingres, Mssql server, Object, Olap, Paradox, Rdb, Revelation, Sybase, Theory, Dbase, Html, Java script, Css, Flash, Photoshop, Corel script, Xml, Tech, Beos, Gem, Hp48, Hpux, Linux, Mac, Ms-dos, Os2, Palm, Solaris, Ti99, Windows, Xenix, Aos, Chorus, Geos, Inferno, Lantastic, Lynx, Mach, Minix, Netware, Os9, Parix, Plan9, Psos, Qnx, Xinu, Sco, Unix, Aix, Aux, 386bsd, Bsdi, Freebsd, Netbsd, Openbsd, Ultrix, Amd, Intel, Aptiva, Buz, Deals, Homebuilt, Overclocking, Programming, Extra forums


Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666