Ok this is my problem, i loaded a bitmap using the (LoadImage) function selected it into a DCa
now i want to (StretchBlt) it to the main windows DCb but i can figure the dimensions of the Bitmap i loaded into the first DCa

How do i get the dimensions of the BMP object or the DC i loaded it into?

I tried this (GetBitmapDimensionEx) but it only returns what you set with this function (SetBitmapDimensionEx) which makes no sense to me.

What function returns the size of the bmp i loaded into the DCa
Posted on 2006-10-19 19:06:43 by ChaosVisum
Pretty easy actually once you know the magic Api for it: GetObject

Use it as follows:


LOCAL bitmap:BITMAP
...
invoke Getobject, hBitmap, sizeof BITMAP, addr bitmap
Posted on 2006-10-19 20:52:43 by JimmyClif