Re: win32Lib pixmap

new topic     » goto parent     » topic index » view thread      » older message » newer message
buzzo said...

I have found that I can do exactly what I want using the following code.. it is called from a paint event

Make sure you're not loading the bitmap during each paint event.

That's a huge waste of resources (both memory and CPU cycles).

Just load the bitmap once when you declare your controls...

-- load the bitmap  
atom hBitmap = loadBitmapFromFile( "C:\\Users\\Buzz\\Pictures\\kathleen01.bmp" ) 

And then draw it in the paint event procedure...

-- display the bitmap in VirtScrn 
drawBitmap( VirtScrn, hBitmap, 2, 36 ) 

-Greg

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

Search



Quick Links

User menu

Not signed in.

Misc Menu