ImageGear .NET - Updated
InvertBlackImage Method
Example 




ImageGear24.Processing.Advanced Assembly > ImageGear.Processing.ImageClean Namespace > ImGearIC Class : InvertBlackImage Method
1-bit ImGearPage object to apply the method to.
Minimum necessary percentage of black pixels on the image to trigger auto-inversion.
Inverts the page if the percentage of black pixels is higher than the specified parameter.
Syntax
'Declaration
 
Public Shared Sub InvertBlackImage( _
   ByVal page As ImGearPage, _
   ByVal percentOfBlack As Integer _
) 
'Usage
 
Dim page As ImGearPage
Dim percentOfBlack As Integer
 
ImGearIC.InvertBlackImage(page, percentOfBlack)
public static void InvertBlackImage( 
   ImGearPage page,
   int percentOfBlack
)
public: static void InvertBlackImage( 
   ImGearPage* page,
   int percentOfBlack
) 
public:
static void InvertBlackImage( 
   ImGearPage^ page,
   int percentOfBlack
) 

Parameters

page
1-bit ImGearPage object to apply the method to.
percentOfBlack
Minimum necessary percentage of black pixels on the image to trigger auto-inversion.
Remarks
Method takes 1-bit ImGearPage and a percent of black pixels' parameter and inverts all the pixel values if the percentage of black pixels is higher than the specified parameter.
Example
// Invert the image if over 50% of the pixels are black.
ImGearIC.InvertBlackImage(igPage, 50);
' Invert the image if over 50% of the pixels are black.
ImGearIC.InvertBlackImage(igPage, 50)
See Also

Reference

ImGearIC Class
ImGearIC Members
ImGearPage Class