Re: Win32Lib - Bitmap's Size

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu