|Visual Basic (Declaration)|
|Visual Basic (Usage)||Copy Code|
- ImImage to scan to see if text color is inverted.
Return ValueReturns 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