Added wxGraphicsBitmap::ConvertToImage().

Allow to convert wxGraphicsBitmap directly to wxImage, without passing by
wxBitmap.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2011-10-09 22:07:07 +00:00
parent 5f606e6515
commit 08b2d55fdf
4 changed files with 222 additions and 0 deletions

View File

@@ -282,6 +282,20 @@ public:
Default constructor creates an invalid bitmap.
*/
wxGraphicsBitmap() {}
/**
Return the contents of this bitmap as wxImage.
Using this method is more efficient than converting wxGraphicsBitmap to
wxBitmap first and then to wxImage and can be useful if, for example,
you want to save wxGraphicsBitmap as a disk file in a format not
directly supported by wxBitmap.
Invalid image is returned if the bitmap is invalid.
@since 2.9.3
*/
wxImage ConvertToImage() const;
};
/**