ClippedMode

float x, float y, float w, float h );

When the Bitmap is rendered it's clipped to the specified region.

The parts of the Bitmap which fall outside of the clipping region won't be visible. In the blitting functions the top-left corner of the Bitmap will be considered to be the top-left corner of the clipping region inside the Bitmap.

Examples

Bitmap bmp( ... );

// Render the Bitmap clipped to the width of 70.0 and the height of 50.0 //
bmp.Blit200.0100.0ClippedMode0.00.070.050.0 ));

// Render the Bitmap clipped to the same width and height but such that //
// the top-left corner of the clipping region is at 20.0, 10.0 //
bmp.Blit200.0100.0ClippedMode20.010.070.050.0 ));


Parent Class


Questions about ClippedMode? Click here.