X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff3050e17ad4c5fa1c52150d0dc8abc8be3cbe50..fac938f8fdf4d0b644e94d3f3f76c5db6aeac348:/interface/wx/image.h diff --git a/interface/wx/image.h b/interface/wx/image.h index 9982ee2044..1c1b2d3088 100644 --- a/interface/wx/image.h +++ b/interface/wx/image.h @@ -1027,6 +1027,25 @@ public: unsigned char green, unsigned char blue); + /** + Set the type of image returned by GetType(). + + This method is mostly used internally by the library but can also be + called from the user code if the image was created from data in the + given bitmap format without using LoadFile() (which would set the type + correctly automatically). + + Notice that the image must be created before this function is called. + + @since 2.9.0 + + @param type + One of bitmap type constants, @c wxBITMAP_TYPE_INVALID is a valid + value for it and can be used to reset the bitmap type to default + but @c wxBITMAP_TYPE_MAX is not allowed here. + */ + void SetType(wxBitmapType type); + /** Returns a resized version of this image without scaling it by adding either a border