cehua_lyf
2019-03-06 3c8ee0a8a524a6251d7d5aae2372e76fd8a99b9c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
ŒôXc@sÁddlZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd    „Zd
d d „Z    d
d d „Z
d„Z d„Z d„Z d„Zd„Zd„Zd„Zdd„ZdS(iÿÿÿÿNcCstjd|j|ƒS(s&Fill a channel with a given grey leveltL(tImagetnewtsize(timagetvalue((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pytconstant+scCs
|jƒS(sCreate a copy of a channel(tcopy(R((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pyt    duplicate6scCs |jƒ|j|jjƒƒS(sInvert a channel(tloadt_newtimt chop_invert(R((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\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((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\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((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pytdarkeres
 
cCs0|jƒ|jƒ|j|jj|jƒƒS(sSubtract one image from another(R    R
R tchop_difference(RR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pyt
differencevs
 
cCs0|jƒ|jƒ|j|jj|jƒƒS(sSuperimpose two positive images(R    R
R t chop_multiply(RR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pytmultiply‰s
 
cCs0|jƒ|jƒ|j|jj|jƒƒS(sSuperimpose two negative images(R    R
R t chop_screen(RR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pytscreenšs
 
gð?icCs6|jƒ|jƒ|j|jj|j||ƒƒS(sAdd two images(R    R
R tchop_add(RRtscaletoffset((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pytadd¬s
 
cCs6|jƒ|jƒ|j|jj|j||ƒƒS(sSubtract two images(R    R
R t chop_subtract(RRRR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pytsubtract¾s
 
cCs0|jƒ|jƒ|j|jj|jƒƒS(sAdd two images without clipping(R    R
R tchop_add_modulo(RR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\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((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pytsubtract_moduloàs
 
cCs0|jƒ|jƒ|j|jj|jƒƒS(sLogical and between two images(R    R
R tchop_and(RR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pyt logical_andës
 
cCs0|jƒ|jƒ|j|jj|jƒƒS(sLogical or between two images(R    R
R tchop_or(RR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pyt
logical_orös
 
cCs0|jƒ|jƒ|j|jj|jƒƒS(sLogical xor between two images(R    R
R tchop_xor(RR((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pyt logical_xors
 
cCstj|||ƒS(s5Blend two images using a constant transparency weight(Rtblend(RRtalpha((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pyR* scCstj|||ƒS(sCCreate composite image by blending images using a transparency mask(Rt    composite(RRtmask((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pyR,scCs;|dkr|}n|jƒ|j|jj||ƒƒS(s4Offset image in horizontal and/or vertical directionN(tNoneR    R
R R(Rtxoffsettyoffset((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pyR)s     
(RRRR RRRRRRRR!R#R%R'R)R*R,R.R(((sq.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\ImageChops.pyt<module>s$