Processing options. Note that the palette and dithering options are useful only when the resulting bitmap requires a palette (when it is 8 bits per pixel or less). You can combine values when appropriate by using a bitwise OR ( | ). The following are valid values:
Value | Meaning |
---|---|
CRF_FIXEDPALETTE | [0x01] Use the fixed palette. |
CRF_OPTIMIZEDPALETTE | [0x02] Create an optimized palette. |
CRF_BYTEORDERBGR | [0x04] Use BGR color order. This flag only has meaning when going to 16 bits per pixel or higher. |
CRF_BYTEORDERRGB | [0x00] Use RGB color order. This flag only has meaning when going to 16 bits per pixel or higher. |
CRF_IDENTITYPALETTE | [0x08] Insert the Windows system palette. |
CRF_USERPALETTE | [0x10] Use the palette specified in the pPalette parameter. |
CRF_FASTMATCHPALETTE | [0x20] Use a predefined table to speed conversion using your own palette. Refer to LBitmapSettings::CreateUserMatchTable |
CRF_NODITHERING | [0x00000000] Use nearest color matching. |
CRF_FLOYDSTEINDITHERING | [0x00010000] Use Floyd Stein dithering. |
CRF_STUCKIDITHERING | [0x00020000] Use Stucki dithering. |
CRF_BURKESDITHERING | [0x00030000] Use Burkes dithering. |
CRF_SIERRADITHERING | [0x00040000] Use Sierra dithering. |
CRF_STEVENSONARCEDITHERING | [0x00050000] Use Stevenson Arce dithering. |
CRF_JARVISDITHERING | [0x00060000] Use Jarvis dithering. |
CRF_ORDEREDDITHERING | [0x00070000] Use ordered dithering, which is faster but less accurate than other dithering methods. |
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 ET
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.