AnimationPalette property (ILEADRasterView)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

OLE_COLOR AnimationPalette (short iIndex);

Overview

Refer to Playing an Animation.

Remarks

Sets a color in the palette used for animation playback. This is a property of the temporary target bitmap.

The palette is an array of 256 elements. Each element is a long integer value containing the red, green and blue (RGB) components of the color. You can specify a color using the RGB function.

Palettes are used only for images that are 8 bits per pixel or less.

This property is initialized when you take any of the following actions which create or replace the control's bitmap list:

image\sqrblit.gif Load an image file.

image\sqrblit.gif Capture an image from the screen.

image\sqrblit.gif Load one or more images using the TWAIN device.

image\sqrblit.gif Copy another control's bitmap list by assigning the BitmapList property.

When you load an animated GIF file, the initial value is based on the global palette specified in the file. Otherwise, the default is the same as the first bitmap in the list.

When you save an animated GIF file, this value is saved as a global value in the file.

See Also

Elements

AnimationBackColor property, AnimationBitsPerPixel property, AnimationWidth property, AnimationHeight property

Topics

Raster Images: Saving Files

 

Raster Images: Getting and Setting File Information

 

Raster Images: Playing Animated Images

 

Using Color Values in LEADTOOLS