;ò é^FAc@s¥dkZdklZdZdeifd„ƒYZd„ZdZedjoPdk Z dk Z dk Z e i de i ie id ƒge id ƒndS( N(sopjs4Some text will appear mixed in the image's shadow...s TestPanelcBstZd„Zd„ZRS(NcCs9||_tii||dƒ|iti|iƒdS(Niÿÿÿÿ( slogsselfswxsPanels__init__sparentsBinds EVT_PAINTsOnPaint(sselfsparentslog((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ImageAlpha.pys__init__ s cCsBti|ƒ}|itidƒƒ|iƒ|itidti ti ti t ƒƒ|i dddƒtitdƒƒ}dtijo)|iƒ}|idƒ|iƒ}n|i|ddt ƒ|i|iƒƒd }x;td ƒD]-}||iƒd 7}|i td |ƒq÷W|i|d dt ƒdS(NsWHITEis1Bitmap alpha blending (on all ports but gtk+ 1.2)isbitmaps/toucan.pngsgtk1iÜidiKi iiÈiú(swxsPaintDCsselfsdcs SetBackgroundsBrushsClearsSetFontsFontsSWISSsNORMALsBOLDsTruesDrawTextsBitmapsopjsbmps PlatformInfosConvertToImagesimgsConvertAlphaToMasksConvertToBitmaps DrawBitmapsGetFontsysrangeslines GetCharHeightsmsg(sselfsevtsimgsdcsbmpsysline((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ImageAlpha.pysOnPaints& +     (s__name__s __module__s__init__sOnPaint(((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ImageAlpha.pys TestPanel s cCst||ƒ}|SdS(N(s TestPanelsnbslogswin(sframesnbslogswin((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ImageAlpha.pysrunTest:ssž

Images with Alpha

wxMSW and wxMac now support alpha channels of supported image types, and will properly blend that channel when drawing a bitmap. It is not supported yet on wxGTK, (if you would like to change that please submit a patch!)

On wxGTK this demo turns the alpha channel into a 1-bit mask, so yes, it looks like crap. Please help us fix it! s__main__sii(swxsMainsopjsmsgsPanels TestPanelsrunTestsoverviews__name__ssyssossrunsmainspathsbasenamesargv( ssyssrunsoverviewsrunTestsmsgswxsossopjs TestPanel((sj/mnt/gmirror/ports/x11-toolkits/py-wxPython26-common/work/wxPython-src-2.6.3.3/wxPython/demo/ImageAlpha.pys?s  0