ImageGear23.Processing.Advanced Assembly > ImageGear.Processing Namespace > ImGearEffects Class > Solarize Method : Solarize(ImGearRasterPage,Int32,ImGearContrastModes,ImGearChannelRange) Method |
'Declaration Public Overloads Shared Sub Solarize( _ ByVal page As ImGearRasterPage, _ ByVal threshold As Integer, _ ByVal mode As ImGearContrastModes, _ ByVal channels As ImGearChannelRange _ )
'Usage Dim page As ImGearRasterPage Dim threshold As Integer Dim mode As ImGearContrastModes Dim channels As ImGearChannelRange ImGearEffects.Solarize(page, threshold, mode, channels)
public static void Solarize( ImGearRasterPage page, int threshold, ImGearContrastModes mode, ImGearChannelRange channels )
public: static void Solarize( ImGearRasterPage* page, int threshold, ImGearContrastModes mode, ImGearChannelRange channels )
public: static void Solarize( ImGearRasterPage^ page, int threshold, ImGearContrastModes mode, ImGearChannelRange channels )
The threshold is a value from 0 to the maximum value for a channel in the image. For example, if the image is 24bpp RGB, the threshold ranges from 0 to 255.
// Channel range to adjust contrast. ImGearChannelRange igChannelRange = new ImGearChannelRange(0, igRasterPage.DIB.ChannelCount); // Solarize the image, inverting the contrast the contrast if above threshold. ImGearEffects.Solarize(igRasterPage, 200, ImGearContrastModes.AUTO, igChannelRange);
' Channel range to adjust contrast. Dim igChannelRange As New ImGearChannelRange(0, igRasterPage.DIB.ChannelCount) ' Solarize the image, inverting the contrast the contrast if above threshold. ImGearEffects.Solarize(igRasterPage, 200, ImGearContrastModes.AUTO, igChannelRange)