ZeeImage Control Message

ZIM_STARTANIMATE


ZIM_STARTANIMATE

An application sends a ZIM_STARTANIMATE to begin playing an animation that begins with the slot or index specified in wParam and ends with the slot or index specified in lParam.

ZIM_STARTANIMATE
wParam = (WPARAM)(int) iBegin;           //Beginning frame of animation
lParam = (LPARAM)(int) iEnd;             //Ending frame of animation

Parameters

iBegin
The value of wParam. The index of the ZeeImage control that is first frame of the animation.

iEnd
The value of lParam. The index of the ZeeImage control that is last frame of the animation.

Return Values

This message does not return a value.

Example


//Play a one second animation at 30 FPS that repeats 5 times
//The 30 animation frames or individual images have been loaded into slots or indexes 15 through 45
SendMessage(himage,ZIM_SETANIMATELOOP,4,0);    //Loops 4 times.  Plays 5 times.
SendMessage(himage,ZIM_SETANIMATEDELAY,33,0);  //Set animation to play at 30 FPS
SendMessage(himage,ZIM_STARTANIMATE,15,45);    //Start playing the animation.  It will stop after it plays 5 times.

Note:

The ending frame specified in lParam must be greater than the value specified in wParam.

Copyright © 2020 by David Hillard