add wxImage::SetType() and use it in animation decoders (#9639)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -361,6 +361,11 @@ public:
|
||||
// Gets the type of image found by LoadFile or specified with SaveFile
|
||||
wxBitmapType GetType() const;
|
||||
|
||||
// Set the image type, this is normally only called if the image is being
|
||||
// created from data in the given format but not using LoadFile() (e.g.
|
||||
// wxGIFDecoder uses this)
|
||||
void SetType(wxBitmapType type);
|
||||
|
||||
// these functions provide fastest access to wxImage data but should be
|
||||
// used carefully as no checks are done
|
||||
unsigned char *GetData() const;
|
||||
|
Reference in New Issue
Block a user