RenderMode

The virtual base class of all Bitmap rendering effects.

You can use the sum operator to combine several RenderModes.

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.Blit200.0100.0TintedRgba1.00.00.00.35 )));

// Render the bitmap vertically flipped, clipped to a 100 x 100 region and tinted 30% to red //
myBmp.Blit200.0100.0Flipped( VERTICAL ) +
                                   Clipped0.00.0100.0100.0 ) +
                                   TintedRgba1.01.01.00.30 )));


Derived Classes
Tinted
Tints the Bitmap to the specified color
Flipped
Flips the Bitmap around one or both coordinate axes
Clipped
Clips the Bitmap to the specified region
AlphaFrom
The Bitmap will be rendered with an additional alpha channel from an another Bitmap
SliceExpanded
Stretches a one pixel wide slice of the bitmap to fill the entire bitmap
MultiMode
Combines two RenderModes to a single RenderMode
Gradient
Allows for gradient lighting, shadow and transparency effects


Questions about RenderMode? Click here.