|
-
Apr 5th, 2000, 10:06 PM
#1
If getting the pixel dims of a jpeg is out of the question, what about a bitmap??
Cheers
Mafro
-
Apr 5th, 2000, 11:13 PM
#2
Frenzied Member
use the GetBitmapDimensionEx API
Code:
Private Declare Function GetBitmapDimensionEx Lib "gdi32" Alias "GetBitmapDimensionEx" (ByVal hBitmap As Long, lpDimension As SIZE) As Long
-
Apr 5th, 2000, 11:52 PM
#3
Junior Member
What?
Getting the pixel dimensions of a jpeg is out of the question? Huh? Just load it up into an image box, get the height and width, then divide those by 15. Correct me if I'm wrong but there's 15 twips to a pixel.
(Oh, and make sure the autoredraw is set to true so it automatically sizes up the imagebox)
[Edited by Baron_Fel on 04-06-2000 at 12:57 PM]
-
Apr 6th, 2000, 05:35 AM
#4
Correct me if I'm wrong but there's 15 twips to a pixel.
Well, I have to correct you.
Twips per Pixel depend on the windows screen settings. With (normal) small fonts settings, you are right. If you use large font settings, there are 12 twips per pixel. And of course there are custom settings.
Use Screen.TwipsPerPixelX and Screen.TwipsPerPixelY for this purpose.
-
Apr 6th, 2000, 08:11 AM
#5
Junior Member
Ok...
Sorry, I've got my screen set to 1024 x 1278 (something like that) and I just averaged. Anyway, mine is actually 14.8745...Not exactly 15 either.
Thanks for the info though...
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
|