Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.17
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
)
Managed Extensions for 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 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also