Results 1 to 2 of 2

Thread: Conversion Pixel -> twip...

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Location
    Dallas
    Posts
    50

    Conversion Pixel -> twip...

    Does anyone know how to figure out how many Pixels are in a twip? Or just KNOW how many are in a twip? I can't put my MDI form into Pixels.. so i'm stuck resizing my forms through a twips per pixel conversion.

    Thanks,
    -Ked-
    What do you mean it doesn't work? I had it working just a minute ago!

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    Pixels to Twip:
    VB Code:
    1. W = W * Screen.TwipsPerPixelX
    2. H = H * Screen.TwipsPerPixelY
    Twips to Pixel:
    VB Code:
    1. W = W / Screen.TwipsPerPixelX
    2. H = H / Screen.TwipsPerPixelY
    All contents of the above post that aren't somebody elses are mine, not the property of some media corporation.
    (Just a heads-up)

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