ó *ÈÔec@sÅddlmZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd „Z d d d „Z d d d „Z d„Z d„Z d„Zd„Zd„Zd„Zd„Zdd„ZdS(iÿÿÿÿ(tImagecCstjd|j|ƒS(s&Fill a channel with a given grey leveltL(Rtnewtsize(timagetvalue((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pytconstant+scCs |jƒS(sCreate a copy of a channel(tcopy(R((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pyt duplicate6scCs |jƒ|j|jjƒƒS(sInvert a channel(tloadt_newtimt chop_invert(R((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pytinvertBs cCs0|jƒ|jƒ|j|jj|jƒƒS(s)Select the lighter pixels from each image(R R R t chop_lighter(timage1timage2((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pytlighterSs  cCs0|jƒ|jƒ|j|jj|jƒƒS(s(Select the darker pixels from each image(R R R t chop_darker(RR((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pytdarkeres  cCs0|jƒ|jƒ|j|jj|jƒƒS(sSubtract one image from another(R R R tchop_difference(RR((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pyt differencevs  cCs0|jƒ|jƒ|j|jj|jƒƒS(sSuperimpose two positive images(R R R t chop_multiply(RR((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pytmultiply‰s  cCs0|jƒ|jƒ|j|jj|jƒƒS(sSuperimpose two negative images(R R R t chop_screen(RR((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pytscreenšs  gð?icCs6|jƒ|jƒ|j|jj|j||ƒƒS(sAdd two images(R R R tchop_add(RRtscaletoffset((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pytadd¬s  cCs6|jƒ|jƒ|j|jj|j||ƒƒS(sSubtract two images(R R R t chop_subtract(RRRR((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pytsubtract¾s  cCs0|jƒ|jƒ|j|jj|jƒƒS(sAdd two images without clipping(R R R tchop_add_modulo(RR((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pyt add_moduloÏs  cCs0|jƒ|jƒ|j|jj|jƒƒS(s$Subtract two images without clipping(R R R tchop_subtract_modulo(RR((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pytsubtract_moduloàs  cCs0|jƒ|jƒ|j|jj|jƒƒS(sLogical and between two images(R R R tchop_and(RR((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pyt logical_andës  cCs0|jƒ|jƒ|j|jj|jƒƒS(sLogical or between two images(R R R tchop_or(RR((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pyt logical_orös  cCs0|jƒ|jƒ|j|jj|jƒƒS(sLogical xor between two images(R R R tchop_xor(RR((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pyt logical_xors  cCstj|||ƒS(s5Blend two images using a constant transparency weight(Rtblend(RRtalpha((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pyR* scCstj|||ƒS(sCCreate composite image by blending images using a transparency mask(Rt composite(RRtmask((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pyR,scCs;|dkr|}n|jƒ|j|jj||ƒƒS(s4Offset image in horizontal and/or vertical directionN(tNoneR R R R(Rtxoffsettyoffset((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pyR)s   N(tPILRRRR RRRRRRRR!R#R%R'R)R*R,R.R(((s4/usr/lib64/python2.7/site-packages/PIL/ImageChops.pyts$