Added wxBITMAP_TYPE_TIFF and wxBITMAP_TYPE_TIFF_RESOURCE.
Having wxBITMAP_TYPE_TIFF and wxBITMAP_TYPE_TIFF_RESOURCE is more consistent with already using the complete short name of an image format elsewhere (e.g. wxBITMAP_TYPE_JPEG, not wxBTMAP_TYPE_JPG, and wxTIFFHandler as opposed to wxTIFHandler). Renamed all existing occurrences and kept the old enum values for backwards compatibility. Also renamed occurrences of wxBITMAP_TYPE_RESOURCE to the already existing wxBITMAP_TYPE_BMP_RESOURCE. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -50,7 +50,7 @@ struct testData {
|
||||
{ "horse.pcx", wxBITMAP_TYPE_PCX, 8 },
|
||||
{ "horse.pnm", wxBITMAP_TYPE_PNM, 24 },
|
||||
{ "horse.tga", wxBITMAP_TYPE_TGA, 8 },
|
||||
{ "horse.tif", wxBITMAP_TYPE_TIF, 8 }
|
||||
{ "horse.tif", wxBITMAP_TYPE_TIFF, 8 }
|
||||
};
|
||||
|
||||
|
||||
@@ -192,7 +192,7 @@ void ImageTestCase::LoadFromZipStream()
|
||||
case wxBITMAP_TYPE_GIF:
|
||||
case wxBITMAP_TYPE_PCX:
|
||||
case wxBITMAP_TYPE_TGA:
|
||||
case wxBITMAP_TYPE_TIF:
|
||||
case wxBITMAP_TYPE_TIFF:
|
||||
continue; // skip testing those wxImageHandlers which cannot
|
||||
// load data from non-seekable streams
|
||||
|
||||
@@ -1097,7 +1097,7 @@ static void TestTIFFImage(const wxString& option, int value)
|
||||
wxMemoryOutputStream memOut;
|
||||
image.SetOption(option, value);
|
||||
|
||||
CPPUNIT_ASSERT(image.SaveFile(memOut, wxBITMAP_TYPE_TIF));
|
||||
CPPUNIT_ASSERT(image.SaveFile(memOut, wxBITMAP_TYPE_TIFF));
|
||||
|
||||
wxMemoryInputStream memIn(memOut);
|
||||
CPPUNIT_ASSERT(memIn.IsOk());
|
||||
|
Reference in New Issue
Block a user