How to convert the bmp image to PNG format

See http://resourcepackage.sourceforge.net/ for an automated way (i.e. you don't need to re-create the embedded image every time you alter the image file), see the img2py scripts in wxPython for manual way.

BTW, these are just Python strings with the binary contents of the file, so repr(open(filename,'rb').read()) would give you approximately the same thing, it's just that ResourcePackage and/or img2py try to make the result a little more manageable and readable.

HTH,
Mike

bala wrote:

Hi,
   Iam having bmp image file...i want to use it in wxTreeListCtrl...if i want to use the image in the wxTreeListCtrl...

in the images.py file, all the images are in the png strange format..below is one example... of copy.png file

...

I want to know how to bring the above format.....

My requirement is, iam having checkbox bmp file...i want to use the checkbox bmp file in the wxTreeListCtrl...then i have to use wxArtProvider_GetBitmap method ....this method takes the above png format.

Kindly give one example of converting one bmp to the above png format

...

ยทยทยท

_______________________________________
  Mike C. Fletcher
  Designer, VR Plumber, Coder
  http://members.rogers.com/mcfletch/