Leadtools.CF Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.6.15
PaletteFlags Property
See Also 
Leadtools.Codecs Namespace > CodecsThumbnailOptions Structure : PaletteFlags Property



Gets or sets the palette flags to use when creating thumbnail images.

Syntax

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

Return Value

A combination of Leadtools.ImageProcessing.ColorResolutionCommandPaletteFlags values to use when creating thumbnail images.

Example

For an example, refer to RasterCodecs.ReadThumbnail.

Remarks

The PaletteFlags will be passed to ColorResolutionCommand internally when MaintainAspectRatio is true, ForceSize is true, and the source image is not 24-bit. In this case, the thumbnail image is converted to 24-bit, then, combined with a "background" bitmap. The resulting bitmap is then returned to the thumbnail image's original bit-depth using PaletteFlags.

Requirements

Target Platforms: Microsoft .NET CF Framework 2.0, Windows Mobile 5 PocketPC, Windows Mobile 5 Smartphone, Windows Mobile 6

See Also