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.
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.
C# | Copy Code |
---|---|
// Invert the image if over 50% of the pixels are black.
ImGearIC.InvertBlackImage(igPage, 50); |
Visual Basic | Copy Code |
---|---|
' Invert the image if over 50% of the pixels are black.
ImGearIC.InvertBlackImage(igPage, 50) |