←Select platform

RasterPaintDisplayModeFlags Enumeration

Summary

Contains value that controls the speed, quality, and style of painting operations.

Syntax
C#
VB
C++
[FlagsAttribute()] 
public enum RasterPaintDisplayModeFlags   
<FlagsAttribute()> 
Public Enum RasterPaintDisplayModeFlags  
[FlagsAttribute()] 
public enum class RasterPaintDisplayModeFlags   

Members
ValueMemberDescription
0x00000000None Default
0x00000001OrderedDither Enables or disables ordered dithering when painting. Ordered dithering is faster than the default dithering method, which uses error diffusion, but the quality of the image is not as good.
0x00000002FastPaint Enables or disables fast painting. Fast painting should be performed only if the current video driver is good, and the image does not need to be dithered or resized to paint. No safety check for a faulty driver is performed.
0x00000004IndexedPaint Enables or disables painting that is mapped directly to the selected palette. You can this and let Windows do color matching between the paint palette and the selected palette. Indexed painting uses the colors from the currently selected palette. It is not used if the image is not palletized.
0x00000008DitheredPaint Enables or disables painting that is mapped directly to the selected palette. This is enabled by default; you can set this flag to disable it and let Windows do color matching between the paint palette and the selected palette. Indexed painting uses the colors from the currently selected palette. It is not used if the image is not palletized.
0x00000010ScaleToGray (Document/Medical only) Enables grayscaling of 1-bit images when they are displayed. This improves the readability of the images when they are zoomed in or zoomed out, but it slows down the display.
0x00000020HalftonePrint Enables use of the printing halftone (rather than the viewing halftone) when painting to a 1-bit device.
0x00000040FavorBlack (Document/Medical only) Enables a bias in preserving black objects when displaying zoomed-out 1-bit images. This can prevent the disappearance of fine lines and details, but it slows down the display.
0x00000080FixedPalette Enables the LEAD Fixed palette when displaying 24-bit (or greater) images on 8-bit (or less) devices.
0x00000100NetscapePalette Enables the Netscape Fixed palette when displaying 24-bit (or greater) images on 8-bit (or less) devices.
0x00000200Resample Enables resample resize when displaying images at zoom factors other than 1:1.
0x00000400Bicubic Enables bicubic resize when displaying images at zoom factors other than 1:1.

Remarks

This enumeration provides value for the RasterPaintProperties.PaintDisplayMode property.

Example

For an example, refer to RasterPaintProperties.

Requirements

Target Platforms

See Also

Reference

Leadtools.Drawing Namespace

Help Version 20.0.2020.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Drawing Assembly