Returns the green intensity at the given coordinate.
-\membersection{wxImage::GetImagesCount}\label{wximagegetimagescount}
+\membersection{wxImage::GetImageCount}\label{wximagegetimagecount}
-\func{static int}{GetImagesCount}{\param{const wxString\&}{ filename}, \param{long}{ type = wxBITMAP\_TYPE\_ANY}}
+\func{static int}{GetImageCount}{\param{const wxString\&}{ filename}, \param{long}{ type = wxBITMAP\_TYPE\_ANY}}
-\func{static int}{GetImagesCount}{\param{wxInputStream\&}{ stream}, \param{long}{ type = wxBITMAP\_TYPE\_ANY}}
+\func{static int}{GetImageCount}{\param{wxInputStream\&}{ stream}, \param{long}{ type = wxBITMAP\_TYPE\_ANY}}
If the image file contains more than one image and the image handler is capable
of retrieving these individually, this function will return the number of
Gets the file extension associated with this handler.
-\membersection{wxImageHandler::GetImagesCount}\label{wximagehandlergetimagescount}
+\membersection{wxImageHandler::GetImageCount}\label{wximagehandlergetimagecount}
-\func{int}{GetImagesCount}{\param{wxInputStream\&}{ stream}}
+\func{int}{GetImageCount}{\param{wxInputStream\&}{ stream}}
If the image file contains more than one image and the image handler is capable
of retrieving these individually, this function will return the number of
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 );
virtual bool DoCanRead( wxInputStream& stream );
- virtual int GetImagesCount( wxInputStream& stream );
+ virtual int GetImageCount( wxInputStream& stream );
#endif // wxUSE_STREAMS
private:
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 );
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
- virtual int GetImagesCount( wxInputStream& stream );
+ virtual int GetImageCount( wxInputStream& stream );
bool CanRead( wxInputStream& stream ) { return DoCanRead(stream); }
bool CanRead( const wxString& name );
unsigned char mr, unsigned char mg, unsigned char mb);
static bool CanRead( const wxString& name );
- static int GetImagesCount( const wxString& name, long type = wxBITMAP_TYPE_ANY );
+ static int GetImageCount( const wxString& name, long type = wxBITMAP_TYPE_ANY );
virtual bool LoadFile( const wxString& name, long type = wxBITMAP_TYPE_ANY, int index = -1 );
virtual bool LoadFile( const wxString& name, const wxString& mimetype, int index = -1 );
#if wxUSE_STREAMS
static bool CanRead( wxInputStream& stream );
- static int GetImagesCount( wxInputStream& stream, long type = wxBITMAP_TYPE_ANY );
+ static int GetImageCount( wxInputStream& stream, long type = wxBITMAP_TYPE_ANY );
virtual bool LoadFile( wxInputStream& stream, long type = wxBITMAP_TYPE_ANY, int index = -1 );
virtual bool LoadFile( wxInputStream& stream, const wxString& mimetype, int index = -1 );
#endif
virtual bool LoadFile( wxImage *image, wxInputStream& stream, bool verbose=TRUE, int index=0 );
virtual bool SaveFile( wxImage *image, wxOutputStream& stream, bool verbose=TRUE );
virtual bool DoCanRead( wxInputStream& stream );
- virtual int GetImagesCount( wxInputStream& stream );
+ virtual int GetImageCount( wxInputStream& stream );
#endif
};
#endif
return bResult;
}
-int wxICOHandler::GetImagesCount(wxInputStream& stream)
+int wxICOHandler::GetImageCount(wxInputStream& stream)
{
ICONDIR IconDir;
stream.SeekI(0);
#endif
}
-int wxImage::GetImagesCount( const wxString &name, long type )
+int wxImage::GetImageCount( const wxString &name, long type )
{
#if wxUSE_STREAMS
wxFileInputStream stream(name);
- return GetImagesCount(stream, type);
+ return GetImageCount(stream, type);
#else
return 0;
#endif
return FALSE;
}
-int wxImage::GetImagesCount( wxInputStream &stream, long type )
+int wxImage::GetImageCount( wxInputStream &stream, long type )
{
wxImageHandler *handler;
{
handler=(wxImageHandler*)node->GetData();
if ( handler->CanRead(stream) )
- return handler->GetImagesCount(stream);
+ return handler->GetImageCount(stream);
}
if ( handler->CanRead(stream) )
{
- return handler->GetImagesCount(stream);
+ return handler->GetImageCount(stream);
}
else
{
return FALSE;
}
- return handler->LoadFile( this, stream, index );
+ return handler->LoadFile( this, stream, TRUE/*verbose*/, index );
}
bool wxImage::SaveFile( wxOutputStream& stream, int type )
return FALSE;
}
-int wxImageHandler::GetImagesCount( wxInputStream& WXUNUSED(stream) )
+int wxImageHandler::GetImageCount( wxInputStream& WXUNUSED(stream) )
{
return 1;
}
return TRUE;
}
-int wxTIFFHandler::GetImagesCount( wxInputStream& stream )
+int wxTIFFHandler::GetImageCount( wxInputStream& stream )
{
TIFF *tif = TIFFwxOpen( stream, "image", "r" );