iPhone bitmap support
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1019,7 +1019,7 @@ IconRef wxBitmap::CreateIconRef() const
|
||||
}
|
||||
#endif
|
||||
|
||||
#if wxOSX_USE_COCOA_OR_IPHONE
|
||||
#if wxOSX_USE_COCOA
|
||||
|
||||
WX_NSImage wxBitmap::GetNSImage() const
|
||||
{
|
||||
@@ -1029,6 +1029,15 @@ WX_NSImage wxBitmap::GetNSImage() const
|
||||
|
||||
#endif
|
||||
|
||||
#if wxOSX_USE_IPHONE
|
||||
|
||||
WX_UIImage wxBitmap::GetUIImage() const
|
||||
{
|
||||
wxCFRef< CGImageRef > cgimage(CreateCGImage());
|
||||
return wxOSXCreateUIImageFromCGImage( cgimage );
|
||||
}
|
||||
|
||||
#endif
|
||||
wxBitmap wxBitmap::GetSubBitmap(const wxRect &rect) const
|
||||
{
|
||||
wxCHECK_MSG( Ok() &&
|
||||
|
||||
Reference in New Issue
Block a user