[python-win32] Extract icon from exe files

Tim Roberts timr at probo.com
Tue May 5 19:29:10 CEST 2009


Nicolas EISEN wrote:
>
> I have a last little detail : the icon have the tranparence but the
> bmp take this in black. In win32ui, there are not attribute to set the
> background in white before write the bmp in DC ... an idea ?

Did you do any investigation of this at all?  Did you do "dir(hdc)" to
find out what functions are available in a DC?

    hdc.FillSolidRect( (0,0, ico_x, ico_y), 0xffffff )

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list