~ubuntu-branches/ubuntu/hoary/wmweather+/hoary

« back to all changes in this revision

Viewing changes to wmgeneral/xpm_trans.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Stigge
  • Date: 2004-01-24 00:32:54 UTC
  • Revision ID: james.westby@ubuntu.com-20040124003254-w0zfa0s27evqfcds
Tags: upstream-2.5
ImportĀ upstreamĀ versionĀ 2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Like copyXPMArea, but only copies non-masked pixels */
 
2
void combineWithTrans(int sx, int sy, unsigned w, unsigned h, int dx, int dy);
 
3
 
 
4
/* Like combineWithTrans, except it combines pixels by this formula:
 
5
 * new = (src * o + dest * (256 - o)) / 256
 
6
 */
 
7
void combineWithOpacity(int sx, int sy, unsigned w, unsigned h, int dx, int dy, int o);