Leadtools Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
UsePaintPalette Property
See Also 
Leadtools Namespace > RasterPaintProperties Structure : UsePaintPalette Property



Enables or disables automatically using the RasterImage object palette when displaying the image.

Syntax

Visual Basic (Declaration) 
Public Property UsePaintPalette As Boolean
Visual Basic (Usage)Copy Code
Dim instance As RasterPaintProperties
Dim value As Boolean
 
instance.UsePaintPalette = value
 
value = instance.UsePaintPalette
C# 
public bool UsePaintPalette {get; set;}
C++/CLI 
public:
property bool UsePaintPalette {
   bool get();
   void set (bool value);
}

Return Value

true to automatically use the RasterImage object palette, false to ignore it.

Example

For an example, refer to RasterPaintProperties.

Remarks

Used only when PaintEngine is set to RasterPaintEngine.Gdi.

Set this to true to automatically cause the paint methods to use the RasterImage palette if it has any.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also