OpenLayer Offline Manual

OpenLayer | RenderMode | Clipped Clipped
Clipped( | float x, float y, float w, float h );
When the Bitmap is rendered it's clipped to the specified region.
Clipped( | 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.Blit( 200.0, 100.0, Clipped( 0.0, 0.0, 70.0, 50.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.Blit( 200.0, 100.0, Clipped( 20.0, 10.0, 70.0, 50.0 )); Parent Class RenderMode Back to the main page of the manual Questions about Clipped? Click here.