dockapps/wmweather+-2.12/wmgeneral/xpm_trans.h

8 lines
343 B
C
Raw Normal View History

/* 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);