Available in LEADTOOLS Imaging Pro, Vector, Document, and Medical Imaging toolkits. |
LBitmapBase::GetDefaultDithering
#include "ltwrappr.h"
L_UINT LBitmapBase::GetDefaultDithering()
Retrieves the current dithering mode.
Returns
The current dithering mode. Possible values are:
Value |
Meaning |
NO_DITHERING |
[0] Use no dithering. |
FLOYD_STEIN_DITHERING |
[1] Use the Floyd-Steinberg method. |
BURKES_DITHERING |
[3] Use the Burkes method. |
STUCKI_DITHERING |
[2] Use the Stucki method. |
SIERRA_DITHERING |
[4] Use the Sierra method. |
STEVENSON_ARCE_DITHERING |
[5] Use the Stevenson-Arce method. |
JARVIS_DITHERING |
[6] Use the Jarvis method. |
ORDERED_DITHERING |
[7] Use ordered dithering, which is faster than other methods but is lower in quality. |
CLUSTERED_DITHERING |
[8] Use clustered dithering. |
Comments
Use this function to retrieve the current dithering mode. This is the local dithering mode for the class object.
Required DLLs and Libraries
LTDIS For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
Win32, x64.
See Also
Functions: |
LBitmapBase::SetDefaultDithering, LBitmapBase::EnableLocalSettings, LBitmapBase::IsLocalSettingsEnabled, Class Members |
Topics: |
|
|
|
|
|
|
Example
#define MAKE_IMAGE_PATH(pFileName) TEXT("C:\\Users\\Public\\Documents\\LEADTOOLS Images\\")pFileName L_INT LBitmapBase__GetDefaultDitheringExample() { L_INT nRet; LBitmapBase MyBitmap; L_UINT uDitheringMethod; nRet =MyBitmap.Load(MAKE_IMAGE_PATH(TEXT("image1.cmp"))); if(nRet !=SUCCESS) return nRet; uDitheringMethod=MyBitmap.GetDefaultDithering(); return SUCCESS; }