ImageGear .NET v25.0 - Updated
FilterWithUnsharpMask(ImGearRasterPage,Double,Int32,Int32,ImGearChannelRange) Method
Example 




ImageGear.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class > FilterWithUnsharpMask Method : FilterWithUnsharpMask(ImGearRasterPage,Double,Int32,Int32,ImGearChannelRange) Method
Page to filter.
Radius of unsharp mask.
Amount of unsharpening.
Unsharpening threshold.
Channel range.
Provides UnsharpMask filtering.
Syntax
'Declaration
 
Public Overloads Shared Sub FilterWithUnsharpMask( _
   ByVal page As ImGearRasterPage, _
   ByVal radius As Double, _
   ByVal amount As Integer, _
   ByVal threshold As Integer, _
   ByVal channels As ImGearChannelRange _
) 
'Usage
 
Dim page As ImGearRasterPage
Dim radius As Double
Dim amount As Integer
Dim threshold As Integer
Dim channels As ImGearChannelRange
 
ImGearRasterProcessing.FilterWithUnsharpMask(page, radius, amount, threshold, channels)
public static void FilterWithUnsharpMask( 
   ImGearRasterPage page,
   double radius,
   int amount,
   int threshold,
   ImGearChannelRange channels
)
public: static void FilterWithUnsharpMask( 
   ImGearRasterPage* page,
   double radius,
   int amount,
   int threshold,
   ImGearChannelRange channels
) 
public:
static void FilterWithUnsharpMask( 
   ImGearRasterPage^ page,
   double radius,
   int amount,
   int threshold,
   ImGearChannelRange channels
) 

Parameters

page
Page to filter.
radius
Radius of unsharp mask.
amount
Amount of unsharpening.
threshold
Unsharpening threshold.
channels
Channel range.
Remarks
This method processes a specified range of channels.
Example
// Channel range to calculate.
ImGearChannelRange igChannelRange = new ImGearChannelRange(0, igRasterPage.DIB.ChannelCount);
// Apply an unsharp mask to the image with a radius of 7.5, strength of 100, and threshold of 30
ImGearRasterProcessing.FilterWithUnsharpMask(igRasterPage, 7.5, 100, 30, igChannelRange);
' Channel range to calculate.
Dim igChannelRange As New ImGearChannelRange(0, igRasterPage.DIB.ChannelCount)
' Apply an unsharp mask to the image with a radius of 7.5, strength of 100, and threshold of 30
ImGearRasterProcessing.FilterWithUnsharpMask(igRasterPage, 7.5, 100, 30, igChannelRange)
See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
Overload List
ImGearRasterPage Class
ImGearChannelRange Structure