Document wxGraphicsContext::CreateBitmapFromNativeBitmap() ownership rules.

Mention that it takes ownership of the native bitmap passed to it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@77721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2014-09-18 00:03:04 +00:00
parent 96441d17f6
commit 9a8aa7899c

View File

@@ -1067,6 +1067,9 @@ public:
@a bitmap meaning is platform-dependent. Currently it's a GDI+ @c @a bitmap meaning is platform-dependent. Currently it's a GDI+ @c
Bitmap pointer under MSW, @c CGImage pointer under OS X or a @c Bitmap pointer under MSW, @c CGImage pointer under OS X or a @c
cairo_surface_t pointer when using Cairo under any platform. cairo_surface_t pointer when using Cairo under any platform.
Notice that this method takes ownership of @a bitmap, i.e. it will be
destroyed when the returned wxGraphicsBitmap is.
*/ */
virtual wxGraphicsBitmap CreateBitmapFromNativeBitmap( void* bitmap ) = 0; virtual wxGraphicsBitmap CreateBitmapFromNativeBitmap( void* bitmap ) = 0;