Re: drawbitmap ??

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

Bernie Ryan wrote:

> drawBitmap expects a bitmap handle as a parameter.
> I have bitmap in my current directory called
> MYBITMAP.BMP How do I use win32lib to get its handle?

Load the bitmap with:

   handle = loadBitmapFromFile( "MyBitmap.bmp" )

Display it in MyWindow at {10,20) with:

   drawBitmap( MyWindow, handle, 10, 20 )

-- David Cuny

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

Search



Quick Links

User menu

Not signed in.

Misc Menu