From 13e0edb380fe7bd21c9c6a627581f7454febb6d6 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 18 Sep 2014 00:01:35 +0000 Subject: [PATCH] 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/trunk@77719 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/graphics.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/interface/wx/graphics.h b/interface/wx/graphics.h index 74d8ff3be7..79902b28fc 100644 --- a/interface/wx/graphics.h +++ b/interface/wx/graphics.h @@ -1059,6 +1059,9 @@ public: @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 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;