ImageGear v26.5 - Updated March 3, 2025
ImageGear.Core Assembly / ImageGear.Processing Namespace / ImGearRasterProcessing Class / Sharpen Method / Sharpen(ImGearRasterPage,Int32,ImGearChannelRange) Method
Image to sharpen.
Sharpen factor. Allowed values are from 1 to 7 inclusive. For any factor beyond this range the method will do nothing. The larger this factor, the sharper image will become.
Channel range to sharpen.
Example




Sharpen(ImGearRasterPage,Int32,ImGearChannelRange) Method
Sharpens an image according to the specified sharpen factor.
Syntax
'Declaration
 
Public Overloads Shared Sub Sharpen( _
   ByVal page As ImGearRasterPage, _
   ByVal factor As Integer, _
   ByVal channels As ImGearChannelRange _
) 
 
'Usage
 
Dim page As ImGearRasterPage
Dim factor As Integer
Dim channels As ImGearChannelRange
 
ImGearRasterProcessing.Sharpen(page, factor, channels)

Parameters

page
Image to sharpen.
factor
Sharpen factor. Allowed values are from 1 to 7 inclusive. For any factor beyond this range the method will do nothing. The larger this factor, the sharper image will become.
channels
Channel range to sharpen.
Remarks
This method processes a specified range of channels.

Can be applied only to raster pages with standard (non Run-Ends) DIB.

Example
// Sharpen the first channel of an image by a factor of 3.
ImGearRasterProcessing.Sharpen(igRasterPage, 3, new ImGearChannelRange(0, 1));
See Also