Re: Win32Lib - Bitmap's Size
- Posted by Derek Parnell <derekp at solace.com.au> Oct 04, 2000
- 355 views
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