LEADTOOLS Image File Support (Leadtools.Codecs assembly)

SetPalette Method (CodecsStartDecompressOptions)

Show in webframe







An array of Leadtools.RasterColor structures that represents the palette used for uncompressed data that is 8 bits per pixel or less
Sets the palette used for uncompressed data that is 8 bits per pixel or less.
Syntax
public void SetPalette( 
   RasterColor[] palette
)
'Declaration
 
Public Sub SetPalette( _
   ByVal palette() As RasterColor _
) 
'Usage
 
Dim instance As CodecsStartDecompressOptions
Dim palette() As RasterColor
 
instance.SetPalette(palette)
public void SetPalette( 
   RasterColor[] palette
)
-(void)setPalette:(NSArray*)value;
public void setPalette(RasterColor palette[])
 function Leadtools.Codecs.CodecsStartDecompressOptions.SetPalette( 
   palette 
)
public:
void SetPalette( 
   array<RasterColor>^ palette
) 

Parameters

palette
An array of Leadtools.RasterColor structures that represents the palette used for uncompressed data that is 8 bits per pixel or less
Remarks

The toolkit will use the first 2 >> BitsPerPixel entries from the palette.

The UsePalette property must be set to true in order for the decompress operation to use the palette.

Example
For an example, refer to RasterCodecs.StartDecompress.
Requirements

Target Platforms

See Also

Reference

CodecsStartDecompressOptions Structure
CodecsStartDecompressOptions Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.