Tinted

Renders the bitmap tinted to a color.

Rgba color );

The Bitmap will be tinted to the given color.The alpha value of the color tells the intensity of the tinting.

Note that only one tint effect can take effect at a time!

The old name for this class is TintMode. The old name can still be used. If you wish to disable the new class names, compile OpenLayer with OL_NO_RENDER_MODE_ALIASES.

Examples

// Load a bitmap //
Bitmap myBmp( ... );

// Render the bitmap to the screen such as the top-left corner is at x = 200.0, y = 100.0 //
// and the bitmap is tinted 35% to red //
myBmp.Blit( 200.0, 100.0, Tinted( Rgba( 1.0, 0.0, 0.0, 0.35 )));


Parent Class


Questions about Tinted? Click here.