OpenLayer Offline Manual

OpenLayer | Canvas | Fill Fill
static void Fill( | Rgba fillColor )
Fills the active rendering surface with the specified color.
static void Fill( | Rgba fillColor, PixelWriteMode filledComponents )
Same as above but affects only to the specified color components. Possible choises are: COLOR_AND_ALPHA - Both the color value and alpha channel are affected (Default) COLOR_ONLY - Only the color values are affected ALPHA_ONLY - Only the alpha channel is affected Examples // Fill the active canvas with blue // Canvas::Fill( Rgba::BLUE ); // If the surface is a Bitmap you might wish to empty it // // so that it's totally transparent: // Canvas::Fill( Rgba::INVISIBLE, ALPHA_ONLY ); Other functions of the class Canvas
SetTo | Selects the active rendering surface
Refresh | Refresh the contents of the active rendering surface
Fill | Fills the active rendering surface with the specified color
SetClipping | Sets the clipping region of the active rendering surface
DisableClipping | Disables the clipping region
GetClippingRegion | GetClippingRegion
Width | Returns the width of the active rendering surface
Height | Returns the height of the active rendering surface
Save | Saves the contents of the surface to an image file
Advanced functions
SetPixelWriteMode | Selects which color components the rendering functions affect
GetMemoryBitmap | Returns the contents of the Canvas in a memory bitmap
Push | Pushes the active Canvas to a stack
Pop | Pops the most recently stored Canvas from the stack
Back to the main page of the manual Questions about Fill? Click here.