Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SetAnimationPalette Method
See Also 
Leadtools.Codecs Namespace > CodecsGifSaveOptions Class : SetAnimationPalette Method



palette
An array of 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 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: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also