fixing effects of my lack of English skills: GetImagesCount back to GetImageCount
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13313 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -324,11 +324,11 @@ chararcters in RGBGBRGB... format.
|
||||
|
||||
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
|
||||
@@ -943,9 +943,9 @@ Gets the name of this handler.
|
||||
|
||||
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
|
||||
|
@@ -87,7 +87,7 @@ public:
|
||||
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:
|
||||
|
@@ -46,7 +46,7 @@ public:
|
||||
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 );
|
||||
@@ -164,13 +164,13 @@ public:
|
||||
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
|
||||
|
@@ -40,7 +40,7 @@ public:
|
||||
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
|
||||
|
@@ -1174,7 +1174,7 @@ bool wxICOHandler::LoadFile(wxImage *image, wxInputStream& stream,
|
||||
return bResult;
|
||||
}
|
||||
|
||||
int wxICOHandler::GetImagesCount(wxInputStream& stream)
|
||||
int wxICOHandler::GetImageCount(wxInputStream& stream)
|
||||
{
|
||||
ICONDIR IconDir;
|
||||
stream.SeekI(0);
|
||||
|
@@ -970,11 +970,11 @@ bool wxImage::CanRead( const wxString &name )
|
||||
#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
|
||||
@@ -996,7 +996,7 @@ bool wxImage::CanRead( wxInputStream &stream )
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int wxImage::GetImagesCount( wxInputStream &stream, long type )
|
||||
int wxImage::GetImageCount( wxInputStream &stream, long type )
|
||||
{
|
||||
wxImageHandler *handler;
|
||||
|
||||
@@ -1008,7 +1008,7 @@ int wxImage::GetImagesCount( wxInputStream &stream, long type )
|
||||
{
|
||||
handler=(wxImageHandler*)node->GetData();
|
||||
if ( handler->CanRead(stream) )
|
||||
return handler->GetImagesCount(stream);
|
||||
return handler->GetImageCount(stream);
|
||||
|
||||
}
|
||||
|
||||
@@ -1026,7 +1026,7 @@ int wxImage::GetImagesCount( wxInputStream &stream, long type )
|
||||
|
||||
if ( handler->CanRead(stream) )
|
||||
{
|
||||
return handler->GetImagesCount(stream);
|
||||
return handler->GetImageCount(stream);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -1086,7 +1086,7 @@ bool wxImage::LoadFile( wxInputStream& stream, const wxString& mimetype, int ind
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return handler->LoadFile( this, stream, index );
|
||||
return handler->LoadFile( this, stream, TRUE/*verbose*/, index );
|
||||
}
|
||||
|
||||
bool wxImage::SaveFile( wxOutputStream& stream, int type )
|
||||
@@ -1239,7 +1239,7 @@ bool wxImageHandler::SaveFile( wxImage *WXUNUSED(image), wxOutputStream& WXUNUSE
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
int wxImageHandler::GetImagesCount( wxInputStream& WXUNUSED(stream) )
|
||||
int wxImageHandler::GetImageCount( wxInputStream& WXUNUSED(stream) )
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -271,7 +271,7 @@ bool wxTIFFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbos
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int wxTIFFHandler::GetImagesCount( wxInputStream& stream )
|
||||
int wxTIFFHandler::GetImageCount( wxInputStream& stream )
|
||||
{
|
||||
TIFF *tif = TIFFwxOpen( stream, "image", "r" );
|
||||
|
||||
|
Reference in New Issue
Block a user