trouble with Pixmaps
- Posted by g.haberek at comcast.net Jul 07, 2002
- 370 views
i am having trouble creating a pixmap, or maybe not creating it, but BitBlt-ing it to a window. if i create the pixmap and then BitBlt it to my window, it displays static like that of a TV screen on the wrong channel. im not sure what is wrong, here is my code: ---------------------------------------------------------------------------- ----------------- -- begin code include win32lib.ew without warning atom hLabel, hBackup hLabel = create( Window, "", NULL, Default, Default, 320, 240, 0 ) hBackup = create( Pixmap, "", NULL, 0, 0, 320, 240, 0 ) procedure onPaint_hLabel( atom x1, atom y1, atom x2, atom y2 ) bitBlt( hLabel, 0, 0, hBackup, 0, 0, 320, 240, SrcCopy ) end procedure onPaint[ hLabel ] = routine_id( "onPaint_hLabel" ) WinMain( hLabel, Normal ) -- end code ---------------------------------------------------------------------------- ----------------- ~Greg g.haberek at comcast.net