typedef enum
{
DOC2_CONVERSION_AUTO = 0,
DOC2_CONVERSION_SET,
DOC2_CONVERSION_NO,
DOC2_CONVERSION_GLOBAL,
DOC2_CONVERSION_GRAY,
} DOC2_CONVERSIONMODE;
The DOC2_CONVERSIONMODE enumeration specifies how a non-B/W image, which is stored in the engine, will be converted to a B/W image.
Value | Meaning |
---|---|
DOC2_CONVERSION_AUTO | This affects grayscale or 24-bit color images. A B/W image will be created in the engine's memory. Image binarization applies an automatic adaptive thresholding algorithm. The nBrightness member of the DOC2PREPROCESSINGOPTIONS structure can be used to tune the threshold calculation. |
DOC2_CONVERSION_SET | This affects grayscale or 24-bit color images. A B/W image will be created in the engine's memory. Thresholding with a user-defined threshold value, is set by the nThreshold member of the DOC2PREPROCESSINGOPTIONS structure. |
DOC2_CONVERSION_NO | There will be no conversion while image loading. The image will be loaded into the engine's memory without any conversion (i.e. a color image will retain its color attributes). |
DOC2_CONVERSION_GLOBAL | This affects grayscale or 24-bit color images. A B/W image will be created in the engine's memory. For image binarization, an automatic thresholding algorithm with a page-level global threshold value is applied. |
DOC2_CONVERSION_GRAY | For a color image, a grayscale image will be created in the engine's memory. For a B/W or grayscale image, no conversion will be performed while loading the image. |
The enumeration is used by:
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm EST.
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.