ZeeImage Control Message

ZIM_SETTRANSPARENTCOLOR


ZIM_SETTRANSPARENTCOLOR

An application sends a ZIM_SETTRANSPARENTCOLOR to set the color to be used for transparency for the next LOADIMAGE in the ZeeImage image list.

ZGM_SETTRANSPARENTCOLOR
wParam = Not Used;              //Not used.  Set to 0.
lParam = COLORREF;              //COLORREF value for transparency

Parameters

wParam
The value of wParam. Not used. Set to 0.

lParam
The value of lParam. A COLORREF value to use as the transparency color for images that use transparency

Return Values

This message does not return a value.

Example


SendMessage(himage,ZIM_SETTRANSPARENTCOLOR,5,RGB(255,255,0));

Note:

Images that use transparency (PNG, TIF) will use the transparency color set by this message to color the transparent part of the next loaded image. The transparency color will remain in effect until it is changed with another ZIM_SETTRANSPARENTCOLOR message. The transparent color is white, RGB(255,255,255), by default.

This message ONLY affects the next loaded image. This message by itself will do nothing to images that are already loaded.

Copyright © 2020 by David Hillard