support for multiple images in one file
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -157,6 +157,9 @@ TIFFwxOpen(wxOutputStream &stream, const char* name, const char* mode)
|
||||
|
||||
bool wxTIFFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbose, int index )
|
||||
{
|
||||
if (index == -1)
|
||||
index = 0;
|
||||
|
||||
image->Destroy();
|
||||
|
||||
TIFF *tif = TIFFwxOpen( stream, "image", "r" );
|
||||
@@ -268,7 +271,7 @@ bool wxTIFFHandler::LoadFile( wxImage *image, wxInputStream& stream, bool verbos
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
int wxTIFFHandler::GetImageCount( wxInputStream& stream )
|
||||
int wxTIFFHandler::GetImagesCount( wxInputStream& stream )
|
||||
{
|
||||
TIFF *tif = TIFFwxOpen( stream, "image", "r" );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user