Add wxBitmap::NewFromPNGData() for creating bitmaps from PNG data.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 13 Sep 2012 17:15:00 +0000 (17:15 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 13 Sep 2012 17:15:00 +0000 (17:15 +0000)
commit20e6714a67e1188b9bbb8ca2bc0fb6321e2864fc
treeeced6341dcf43c473cf4ac6a1c3646202aa44866
parent3ccea0978ce5a3f4f68c3abdb3f4aa0e60f49fc4
Add wxBitmap::NewFromPNGData() for creating bitmaps from PNG data.

This simple function can be used to create a wxBitmap from the raw image data
in PNG format. It is just a thin wrapper around wxImage load functions under
almost all platforms but has two advantages:

1. It can be implemented natively for some platforms (currently only OS X).
2. It can be used in a single expression as it doesn't require creating a
   temporary wxMemoryInputStream and this will be required by wxBITMAP_PNG()
   macro that will be added soon.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72476 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/bitmap.h
include/wx/cocoa/bitmap.h
include/wx/msw/bitmap.h
include/wx/os2/bitmap.h
interface/wx/bitmap.h
src/common/bmpbase.cpp
src/osx/core/bitmap.cpp