DISPANIMATIONPROPS

typedef struct tagDISPANIMATIONPROPS
{
   L_UINT uStructSize;
   L_INT nFrames;
   L_UINT uInterval;
   L_UINT uFlags;
} DISPANIMATIONPROPS, * pDISPANIMATIONPROPS;

The DISPANIMATIONPROPS structure contains options for controlling the animation feature.

Member

Description

uStructSize

Size of this structure in bytes, for versioning. Use the sizeof() function to calculate this value.

nFrames

Flag that indecates how the animation will go through the frames. Possible values are:

 

Value

Meaning

 

CONTAINER_ANIMATION_SHOW_ALL

[-1] Go through all the frames. This is the default value.

 

CONTAINER_ANIMATION_SHOW_ODD

[0] Go through the odd frames.

 

CONTAINER_ANIMATION_SHOW_EVEN

[1] Go through the even frames.

 

> 2

Each time skip number of frames equal to the passed value.

 

uInterval

Value that represents the time-out, in milliseconds. Every time uInterval elapsed, the animation will go to the next frame.

uFlags

Flags that indicate the behavior of the animation. You can combine values together when appropriate by using a bitwise OR ( | ). Possible values are:

 

Flags identify the animation direction:

 

Value

Meaning

 

CONTAINER_ANIMATION_DIRECTION_FORWARD

[0x00000000] The animation will move forward.

 

CONTAINER_ANIMATION_DIRECTION_BACKWARD

[0x00001000] The animation will move backward.

 

Flags identify the behavior of the animation when it reaches the last frame:

 

Value

Meaning

 

CONTAINER_ANIMATION_LOOP_SEQUENCE

[0x00000000] when the animation reaches the last frame, it will start from the beginning.

 

CONTAINER_ANIMATION_LOOP_PINGPONG

[0x00010000] when the animation reaches the last frame, it will bounce back.

 

Flags indicates the type of painting used to paint each frame:

 

Value

Meaning

 

CONTAINER_ANIMATION_PAINT_NORMAL

[0x00000000] No interpolation.

 

CONTAINER_ANIMATION_PAINT_RESAMPLE

[0x00000001] Resample interpolation.

 

CONTAINER_ANIMATION_PAINT_BICUBIC

[0x00000002] Bicubic interpolation.

 

Miscellanies flags:

 

Value

Meaning

 

CONTAINER_ANIMATION_SHOW_ANNOTATION

[0x00000010] Show the annotation object while animating the cell.

 

CONTAINER_ANIMATION_SHOW_REGION

[0x00000100] Show the ROI frames while animating the cell.

 

CONTAINER_ANIMATION_PLAYONSELECTION

[0x00100000] Stop when deselect the cell and play when selected.

Comments

This structure is used by the following functions:

L_DispContainerGetAnimationProperties

L_DispContainerSetAnimationProperties