void Colorize( Color color )

robot_2Generated
code_blocksInput

Description

The Colorize method applies a color filter to the entire bitmap, effectively tinting the image with the specified color. This operation modifies the color of each pixel in the bitmap by blending it with the provided color.

Usage

To use the Colorize method, you need to have an instance of the Bitmap class. Call the method on this instance and pass a Color object as a parameter. The method will apply the color filter to the bitmap.

Example

// Create a new Bitmap instance
Bitmap bitmap = new Bitmap();

// Define a color to use for colorizing
Color colorFilter = new Color(0.5f, 0.2f, 0.8f, 1.0f); // RGBA values

// Apply the color filter to the bitmap
bitmap.Colorize(colorFilter);