|
-
Nov 26th, 2000, 04:52 AM
#1
Thread Starter
Frenzied Member
How many twips are there in a pixel. So if i set a forms width to 1000 then i would know how many pixels that is. Also the conversion of pixels to twips ??
-
Nov 26th, 2000, 05:09 AM
#2
Fanatic Member
How many twips are in a pixel depends on you screen resolution. And if it is a horizontal or a vertical twip. You can get it like this:
Code:
Msgbox Screen.TwipsPerPixelX
Msgbox Screen.TwipsPerPixelY
So, you can convert twips to pixels like this:
Code:
amountPixels = amountTwips * Screen.TwipsPerPixelX
I hope this helps.
[Edited by oetje on 11-26-2000 at 05:13 AM]
-
Nov 26th, 2000, 11:35 AM
#3
Frenzied Member
Multiply?
oetje, shouldn't it be
Code:
amountPixels = amountTwips / Screen.TwipsPerPixelX
Divide instead of multilply?
On my Monitor, 15 Twips = One Pixel.
By the way, why don't you capitalize your name? Is this a custom in your culture? Does "oetje" have a meaning other tthan being a name?
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.
-
Nov 26th, 2000, 11:55 AM
#4
Fanatic Member
Guv, thanks for correcting me.
Oetje is just my nickname. I don't know why I didn't capitalize it. (I created this username a long time ago)
-
Nov 26th, 2000, 11:58 AM
#5
Guv: What does it matter? It's just a username. (And I'm sure it has nothing to do with cultures!)
PsyVision: I believe that a Pixel is 15 Twips (most of the time). I'm not sure if it's different on your computer.
-
Nov 26th, 2000, 03:05 PM
#6
Fanatic Member
Maybe TwipsPerPixel varies, if you change your font size. Like Small Fonts, Large fonts.
-
Nov 26th, 2000, 04:12 PM
#7
Thread Starter
Frenzied Member
Thanks, i think its all ok now.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|