The Sharpen
method applies a sharpening filter to the bitmap, enhancing the edges and details of the image. This method modifies the bitmap in place.
The Sharpen
method applies a sharpening filter to the bitmap, enhancing the edges and details of the image. This method modifies the bitmap in place.
To use the Sharpen
method, call it on an instance of the Bitmap
class. You need to specify the amount
of sharpening to apply and whether to tileClamp
the edges of the bitmap.
amount
: A float
value representing the intensity of the sharpening effect. Higher values result in more pronounced sharpening.tileClamp
: A bool
indicating whether to clamp the edges of the bitmap to prevent artifacts. Set to true
to enable clamping.// Create a new Bitmap instance Bitmap bitmap = new Bitmap(); // Apply a sharpening effect with an amount of 1.5 and tile clamping enabled bitmap.Sharpen(1.5f, true);