ZeeImage Control Message
ZIM_SETANIMATEDELAY
ZIM_SETANIMATEDELAY
An application sends a ZIM_SETANIMATEDELAY to specify the delay in milliseconds between frames of an animation.
ZIM_SETANIMATEDELAY
wParam = (WPARAM)(int) iDelay; //Delay time in milliseconds between frames.
lParam = 0; //Not used. Set to 0.
Parameters
-
iDelay
-
The value of wParam. The time to delay between the display of successive frames of an animation.
-
lParam
-
The value of lParam. lParam is not used and should be set to 0.
Return Values
This message does not return a value.
Example
//Set animation to display at 30 frames per second
SendMessage(himage,ZIM_SETANIMATEDELAY,33,0);
Note:
To get the number of frames per second, use the integer value of 1000/desired_FPS. If you want to display an animation (sequence of images in the
ZeeImage control) at 30 frames per second, use the integer value of (1000/30) which is 33 for the value in wParam. (See code in the example)
Copyright © 2020 by David Hillard