ZeeImage Control Message
ZGM_SETDIVISOR
ZGM_SETDIVISOR
An application sends a ZGM_SETDIVISOR to manage the resolution of images when loaded with ZIM_LOADIMAGE.
ZGM_SETDIVISOR
wParam = (WPARAM)(int) iDivisor; //Divisor to use when loading image.
lParam = 0; //Not Used. Set to 0.
Parameters
-
iDivisor
-
The value of wParam. An integer divisor to use when loading the image.
-
lParam
-
The value of lParam. Not used. Set to 0.
Return Values
This message does not return a value.
Example
SendMessage(himage,ZGM_SETDIVISOR,2,0);
Note:
The divisor is a "sticky" control variable that determines the resolution of the loaded image. The control defaults to a divisor value of 1.
If the image being loaded has a resolution of 1600x900, setting the divisor to 2 before loading the image will load the image with a resolution
of 800x450. This can be used to save memory when a high resolution image will only be displayed in a relatively small area on the screen.
This can also prevent you from having to manually resize images that are in too high of resolution for your application.
Copyright © 2020 by David Hillard