Announcement

Collapse
No announcement yet.

Pixel problems..

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dennis Pearson
    replied
    Look at the GetDeviceCaps API function. The LogPixelsX and
    LogPixelsY return the number of pixels per inch. In my case it is
    for printing, but I think it works for any "device".

    1440 / the number of pixels per inch gives you the twips per
    pixel.

    Use GetDeviceCaps to get the pixel resolution. Let's say 600 for
    example.
    1440 / 600 = 2.4 twips per pixel
    720 twips = 300 pixels (720 / 2.4)


    ------------------
    Dennis
    mailto:[email protected][email protected]</A>

    Leave a comment:


  • Alexander Hjalmar
    started a topic Pixel problems..

    Pixel problems..

    Hi,

    How can i convert a TWIP value to a PIXEL value ?
    Please, help me..

    From Alexander Hjalmar

    ------------------
Working...
X