RE: Bitmap clearing

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

Patrick.Barnes at transgrid.com.au wrote:
> If I have a win32lib pixmap, what is the quickest/easiest way to clear 
> all of it to a given background color?
  ------------------------------
-- PROCEDURE: clearWindow
--   Clear a window/pixmap to a particular color
--  Parameters:
--    id: ID of Window/Pixmap
--    color: color to paint Window/Pixmap
  ------------------------------
global procedure clearWindow( integer id, integer color )
   sequence p

   p = getCtlSize( id )
  
   setPenColor( id, color )
   drawRectangle( id, 1, 0, 0, p[1], p[2] )
end procedure

-- Brian

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

Search



Quick Links

User menu

Not signed in.

Misc Menu