←Select platform

UsePalette Property

Summary

Gets or sets a value indicating whether to use the palette when saving images to formats that require a palette.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public bool UsePalette { get; set; } 
Public Property UsePalette As Boolean 
public bool UsePalette {get; set;} 
@property (nonatomic, assign) BOOL usePalette 
public boolean getUsePalette() 
public void setUsePalette(boolean value) 
             
 <br/>get_UsePalette();<br/>set_UsePalette(value);<br/>Object.defineProperty('UsePalette');  
public: 
property bool UsePalette { 
   bool get(); 
   void set (    bool ); 
} 

Property Value

true to use the palette set in SetPalette, false to use the RasterImage's own palette.

Example

For an example, refer to RasterCodecs.StartDecompress.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly