Results 1 to 2 of 2

Thread: TwipsPerPixelX: When change? What mean?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Location
    Huntingdon Valley, PA 19006
    Posts
    1,151
    I have been confused by some sample code from MSDN Library.

    What causes TwipsPerPixelX & TwipsPerPixelY to change? What do they tell me about my Monitor? They do not seem to change when I change Display resolution from 640 X 480 to some other resolution. The MSDN Sample implied to me that they would.

    Thanx --- Live long & prosper.
    Live long & prosper.

    The Dinosaur from prehistoric era prior to computers.

    Eschew obfuscation!
    If a billion people believe a foolish idea, it is still a foolish idea!
    VB.net 2010 Express
    64Bit & 32Bit Windows 7 & Windows XP. I run 4 operating systems on a single PC.

  2. #2
    Guest
    No, TwipsPerPixel shouldn't change from resolution to resolution because a TWIP is an absolute measure like an inch or centimeter. Look in your MSDN library under "twip" (i'm sure you have already) and you'll see one twip = 1/20 point = 1/72 of an inch. Therefore, since the size of each pixel doesn't change, neither will the twipsperpixel variables. (Think of it this way: you're measuring the size of a physical "pixel" with calibers calculated in Twips). One useful application of the twipsperpixel variables is determining screen resolution as in:

    screen.width / screen.twipsperpixel = pixelsAcrossScreen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width