.height in bitblt

blursea
08-25-2001, 07:53 AM
i did a picture with bitblt, but how can i knew it's .height and .width

Garrett Sever
08-25-2001, 09:50 AM
For using BitBlt, you must convert the height and width dimensions to pixels.

If you are using a StdPicture object, this is really quite simple. You simply have the Form scale from vbHimetric to vbPixels, for example:

Me.ScaleX(aStdPic.Width, vbHimetric, vbPixels)

However, if you have a bitmap in memory and only have a handle, you must use the GetObject API to pull that bitmaps information into a BITMAP type.

I've attached an example program custom tailored just for you that demonstrates both methods.

-<font color=purple>The Hand</font color=purple>

Mornin inb2een cold stone ashes fall upon the wretched chosen 1s 100 megatons evaporate those chosen

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum