Clipped

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

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

Rect clipArea );

Same as above but the clipping area is specified with a Rect.

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.0Clipped0.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.0Clipped20.010.070.050.0 ));


Parent Class


Questions about Clipped? Click here.