The Colorize
method applies a color filter to the entire bitmap. This method modifies the bitmap by blending the specified color with each pixel, effectively tinting the image with the given color.
The Colorize
method applies a color filter to the entire bitmap. This method modifies the bitmap by blending the specified color with each pixel, effectively tinting the image with the given color.
To use the Colorize
method, you need to have an instance of the Bitmap
class. Call the method with a Color
parameter that represents the color you want to apply to the bitmap.
// Create a new Bitmap instance Bitmap myBitmap = new Bitmap(); // Define a color to apply Color tintColor = new Color(255, 0, 0); // Red color // Apply the colorize effect myBitmap.Colorize(tintColor);