Re: Win32Lib - Bitmap's Size
Hi,
you can use getExtent() to find the size of the bitmap, and moveWindow() to
move it.
---------------------
constant Repaint = 1
atom hBitmap
integer BitmapID
sequence Dimensions
hBitmap = loadBitmapFromFile("whatever.bmp")
Dimensions = getExtent(hBitmap)
BitMapID = create(Bitmap, "" , aWindow, x, y, Dimensions[1],
Dimensions[2], 0)
. . .
moveWindow(BitMapID, newx, newy, Dimensions[1], Dimensions[2], Repaint)
---------------------
cheers,
Derek Parnell
|
Not Categorized, Please Help
|
|