wmaker-eukara/dockapps/wmweather+/wmgeneral/xpm_trans.h

8 lines
343 B
C
Raw Normal View History

2022-06-09 08:56:44 -07:00
/* Like copyXPMArea, but only copies non-masked pixels */
void combineWithTrans(int sx, int sy, unsigned w, unsigned h, int dx, int dy);
/* Like combineWithTrans, except it combines pixels by this formula:
* new = (src * o + dest * (256 - o)) / 256
*/
void combineWithOpacity(int sx, int sy, unsigned w, unsigned h, int dx, int dy, int o);