The Blur
method applies a blur effect to the bitmap. This method modifies the bitmap in place, softening the image by reducing the sharpness of edges and details.
The Blur
method applies a blur effect to the bitmap. This method modifies the bitmap in place, softening the image by reducing the sharpness of edges and details.
To use the Blur
method, call it on an instance of the Bitmap
class, providing the desired blur radius and a boolean indicating whether to clamp the tiles.
Parameters:
radius
(System.Single): The radius of the blur effect. A larger radius results in a more pronounced blur.tileClamp
(System.Boolean): If set to true
, the blur effect will be clamped to the tile boundaries, preventing the blur from extending beyond the edges of the bitmap.// Create a new Bitmap instance Bitmap bitmap = new Bitmap(); // Apply a blur effect with a radius of 5.0 and tile clamping enabled bitmap.Blur(5.0f, true);