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





img
ImImage to scan to see if text color is inverted.

Glossary Item Box

Determines if the page was scanned inverted

Syntax

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)
C# 
public static System.bool IsTextColorInverted( 
   ImImage img
)
JScript 
public static function IsTextColorInverted( 
   img : ImImage
) : System.boolean;
Managed Extensions for C++ 
public: static System.bool IsTextColorInverted( 
   ImImage* img
) 
C++/CLI 
public:
static System.bool IsTextColorInverted( 
   ImImage^ img
) 

Parameters

img
ImImage to scan to see if text color is inverted.

Return Value

Returns True if the image color is considered inverted.

Remarks

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.

Requirements

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.