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
50
ŒôXc@sddlZddlZddlZddlZdZd„Zd„Zd„Zd„Zddd„ƒYZ    d    ejfd
„ƒYZ
ej d e
d „ƒej d d ƒe dkr ddlZddlZejeejddƒƒZejdƒejdƒndS(iÿÿÿÿNicCstjd|jtƒƒS(Ns>4sI(tstructtunpacktreadt
HEADERSIZE(tfobj((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pyt
nextheaderscCsp|\}}|\}}|j|ƒ|jdƒ}|dkrLtd‚nt||d|df||fƒS(Nits'Unknown signature, expecting 0x00000000(tseekRt SyntaxErrortread_32(Rt.1t.2tstarttlengthtwidththeighttsig((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pytread_32ts    c    CsÏ|\}}|j|ƒ|d|d}||dkrn|j|ƒ}tjd||ddddƒ}nVtjd|d ƒ}x>tdƒD]0}g}    |}
x¹|
dkr]|jdƒ} | sÊPnt| ƒ} | d@r | d} |jdƒ} xDt| ƒD]} |    j| ƒqWn | d} |    j|j| ƒƒ|
| }
|
dkr¥Pq¥q¥W|
dkr}t    d|
ƒ‚ntjd    |t
j |    d
ƒdd    ddƒ}|j j |j |ƒqWi|d6S( sn
    Read a 32bit RGB icon resource.  Seems to be either uncompressed or
    an RLE packbits-like scheme.
    iiitRGBtrawi€i}sError reading channel [%r left]tLtN(RRtImaget
frombuffertnewtNonetrangetordtappendRtstringtjointimtputband(RR
tsizeR R tsizesqtindataRtband_ixtdatat    byteslefttbytet    blocksizetitband((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pyR    !s@     $ 
 
 
 
  'cCsZ|\}}|j|ƒtjd||j|d|dƒddddƒ}i|d6S(NRiiRtA(RRRR(RR
R!R R R*((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pytread_mkLs
     0tIcnsFilecBs¢eZidefdefgd6defdefgd6defdefgd6d    efd
efgd6Zd „Zd „Zd„Zd„Z    dd„Z RS(tit32tt8mki€tih32th8mki0til32tl8mki tis32ts8mkicCs­i|_}||_t|ƒ\}}|dkr@td‚nt}x`||kr¨t|ƒ\}}|t}|t}||f||<|j|dƒ||}qIWdS(s@
        fobj is a file-like object as an icns resource
        ticnssnot an icns fileiN(tdctRRRRR(tselfRR7RtfilesizeR)R(((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pyt__init__is       
 
cCsdg}xW|jjƒD]F\}}x7|D]/\}}|jj|ƒr)|j|ƒPq)q)WqW|S(N(tSIZEStitemsR7thas_keyR(R8tsizesR!tfmtstfmttreader((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pyt    itersizes|s  cCs(|jƒ}|std‚nt|ƒS(NsNo 32bit icon resources found(RBRtmax(R8R>((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pytbestsize…s  cCsei}xX|j|D]I\}}|jj|ƒ}|dk    r|j||j||ƒƒqqW|S(sÂ
        Get an icon resource as {channel: array}.  Note that
        the arrays are bottom-up like windows bitmaps and will likely
        need to be flipped or transposed in some way.
        N(R;R7tgetRtupdateR(R8R!R7tcodeRAtdesc((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pyt dataforsize‹s  #cCsl|dkr|jƒ}n|j|ƒ}|jdƒjƒ}y|j|dƒWntk
rgnX|S(NRR+(RRDRIREtcopytputalphatKeyError(R8R!tchannelsR((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pytgetimage˜s  (i€i€(i0i0(i i (iiN( t__name__t
__module__RR,R    R;R:RBRDRIRRN(((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pyR-Ts                                     t IcnsImageFilecBs,eZdZdZdZd„Zd„ZRS(s+
    PIL read-only image support for Mac OS .icns files.
    Chooses the best resolution, but will possibly load
    a different size image if you mutate the size attribute
    before calling 'load'.
 
    The info dictionary has a key 'sizes' that is a list
    of sizes that the icns file has.
    tICNSsMac OS icns resourcecCsPt|jƒ|_d|_|jjƒ|_|jjƒ|jd<d|_dS(NtRGBAR>R(R(    R-tfpR6tmodeRDR!RBtinfottile(R8((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pyt_open´s
    cCs‰tjj|ƒ|jsdS|jƒ|jj|jƒ}|j|_|j|_|j|_d|_
d|_d|_|j ƒdS(N(( RtloadRWt load_prepareR6RNR!RRURRTtload_end(R8R((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pyRY¼s    
               (RORPt__doc__tformattformat_descriptionRXRY(((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pyRQ¦s
        RRcCs|d dkS(NiR6((tx((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pyt<lambda>Ìss.icnst__main__itrbsout.png((Rt    ImageFileRRRRRR    R,R-RQt register_opentregister_extensionROtostsystopentargvRtsavet    startfile(((sv.\ServerPython\ZoneServerGroup\map1_8G\MapServer\MapServerData\CaptchaImage\VerificationCodePic\PIL\IcnsImagePlugin.pyt<module>s            +    R&