Re: win32Lib pixmap
- Posted by ghaberek (admin) Nov 24, 2014
- 1334 views
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