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.Blit( 200.0, 100.0, Tinted( Rgba( 1.0, 0.0, 0.0, 0.35 ))); // Render the bitmap vertically flipped, clipped to a 100 x 100 region and tinted 30% to red // myBmp.Blit( 200.0, 100.0, Flipped( VERTICAL ) + Clipped( 0.0, 0.0, 100.0, 100.0 ) + Tinted( Rgba( 1.0, 1.0, 1.0, 0.30 ))); Derived Classes
Questions about RenderMode? Click here. |