ImageGear for .NET
InvertBlackImage Method
See Also  Example Send Feedback
ImageGear21.Processing.Advanced Assembly > ImageGear.Processing.ImageClean Namespace > ImGearIC Class : InvertBlackImage Method




page
1-bit ImGearPage object to apply the method to.
percentOfBlack
Minimum necessary percentage of black pixels on the image to trigger auto-inversion.

Glossary Item Box

Inverts the page if the percentage of black pixels is higher than the specified parameter.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

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

C#Copy Code
// Invert the image if over 50% of the pixels are black.
ImGearIC.InvertBlackImage(igPage, 50);
Visual BasicCopy Code
' Invert the image if over 50% of the pixels are black.
ImGearIC.InvertBlackImage(igPage, 50)

See Also

©2013. Accusoft Corporation. All Rights Reserved.