Sets flags that control the speed, quality, and style of painting operations.
#include "ltwrappr.h"
static L_UINT32 LBitmapSettings::SetDisplayMode(uFlagPos, uFlagSet)
The flag or flags to be changed. You can use a bitwise OR ( | ) to specify more than one flag. You can use DISPLAYMODE_RESETPOSITIONS to indicate all flags.
Refer to Flags for the LBitmapSettings::SetDisplayMode Function for descriptions of the flags.
The flags (of those specified in the uFlagPos parameter) to be turned on. You can use a bitwise OR ( | ) to include more than one flag. You can use 0 to turn off all the flags specified in the uFlagPos parameter.
Refer to Flags for the LBitmapSettings::SetDisplayMode Function for descriptions of the flags.
None.
The first parameter specifies which flags are affected, and the second specifies which of those to turn on. The other affected flags are turned off.
Therefore:
To turn a flag on, specify it in the first parameter and the second.
To turn a flag off, specify it in the first parameter, but not the second.
For example, the following statement turns on fast painting, turns off dithered painting, and leaves all other flags as they were:
LBitmapSettings::SetDisplayMode(DISPLAYMODE_FASTPAINT | DISPLAYMODE_DITHEREDPAINT, DISPLAYMODE_FASTPAINT );
For the fastest paint, neither DISPLAYMODE_BICUBIC nor DISPLAYMODE_RESAMPLE should be set.
DISPLAYMODE_RESAMPLE and DISPLAYMODE_BICUBIC cannot be combined.
When painting 1BPP images, DISPLAYMODE_FAVORBLACK and DISPLAYMODE_SCALETOGRAY take precedence over DISPLAYMODE_RESAMPLE and DISPLAYMODE_BICUBIC.
DISPLAYMODE_RESAMPLE is faster than DISPLAYMODE_BICUBIC, but DISPLAYMODE_BICUBIC produces better results when zooming in on images. When zooming out, DISPLAYMODE_BICUBIC and DISPLAYMODE_RESAMPLE produce the same effect.
DISPLAYMODE_GDIPLUS will use Microsoft GDI+ instead of the Windows GDI when painting images. GDI+ is generally slower than GDI however it adds support for painting 32 and 64-bit bitmaps with alpha channels as well as paint a bitmap with transparent color (BITMAPHANDLE.Flags.Transparency set to TRUE). Using this flags requires the Microsoft GDI+ runtime DLL gdiplus.dll to be installed on the machine.
Win32, x64.
For an example, refer to LBitmapSettings::GetDisplayMode.
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