[wx] wxImage

Michele Petrazzo michele.petrazzo at TOGLIunipex.it
Fri Jul 30 14:32:48 CEST 2004


Michele Petrazzo wrote:
> Hello to everyone,
> I want to know how many frames there's in a tiff file. I write:
> 
> img = wxImage(my_img, wxBITMAP_TYPE_TIF)
> img.GetImageCount() (like the documentation say)
> 
> but an error occur: wxImage as non attribute 'GetImageCount'
> is it right or I have problems?
> 
> I use wx 2.4.x
> 
> Thanks

I have resolved the problem:

int = wxImage_GetImageCount(my_img, wxBITMAP_TYPE_TIF)

Bye,
Michele Petrazzo



More information about the Python-list mailing list