LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
SetAnimationPalette Method
See Also 
Leadtools.Codecs Namespace > CodecsGifSaveOptions Class : SetAnimationPalette Method



palette
An array of Leadtools.RasterColor object that represents the current animation palette to use when saving GIF files.
palette
An array of Leadtools.RasterColor object that represents the current animation palette to use when saving GIF files.
Sets the animation palette used when saving GIF files.

Syntax

Visual Basic (Declaration) 
Public Sub SetAnimationPalette( _
   ByVal palette() As RasterColor _
) 
Visual Basic (Usage)Copy Code
Dim instance As CodecsGifSaveOptions
Dim palette() As RasterColor
 
instance.SetAnimationPalette(palette)
C# 
public void SetAnimationPalette( 
   RasterColor[] palette
)
C++/CLI 
public:
void SetAnimationPalette( 
   array<RasterColor>^ palette
) 

Parameters

palette
An array of Leadtools.RasterColor object that represents the current animation palette to use when saving GIF files.

Example

For an example, refer to CodecsGifOptions.

Remarks

The palette set with SetAnimationPalette is only used when the value of UseAnimationPalette is set to true.

Use GetAnimationPalette to get the animation palette to use when saving GIF files.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also