ImageMan.Net Version 3 Summer 2012 Release
IsTextColorInverted(ImImage) Method
See Also  Send Feedback
DTI.ImageMan Namespace > Analyze Class > IsTextColorInverted Method : IsTextColorInverted(ImImage) Method

ImImage to scan to see if text color is inverted.

Glossary Item Box

Determines if the page was scanned inverted


Visual Basic (Declaration) 
Public Overloads Shared Function IsTextColorInverted( _
   ByVal img As ImImage _
) As System.Boolean
Visual Basic (Usage)Copy Code
Dim img As ImImage
Dim value As System.Boolean
value = Analyze.IsTextColorInverted(img)
public static System.bool IsTextColorInverted( 
   ImImage img
public static function IsTextColorInverted( 
   img : ImImage
) : System.boolean;
Managed Extensions for C++ 
public: static System.bool IsTextColorInverted( 
   ImImage* img
static System.bool IsTextColorInverted( 
   ImImage^ img


ImImage to scan to see if text color is inverted.

Return Value

Returns True if the image color is considered inverted.


This function will look at this page and see if there is more black then white. If so it will return true. This function is designed to work with text documents and line drawings, not photographic images. Coverage is simply the ratio of dark pixels to light pixels. The default coverage is 0.75 or 75% in other words if there are 75% dark pixels the image is considered inverted. Most text documents use 10% or less coverage. But this value could easily range any where from: 0.50 to 0.85 and still be accurate in most cases.


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.