+ return false;
+
+ if (!dc->Ok())
+ return false;
+
+ {
+#if wxMAC_USE_CORE_GRAPHICS
+#ifndef __LP64__
+ QDPictRef cgPictRef = M_METAFILEDATA->m_qdPictRef;
+ CGContextRef cg = ((wxMacCGContext*)(dc->GetGraphicContext()))->GetNativeContext();
+ CGRect bounds = QDPictGetBounds( cgPictRef );
+
+ CGContextSaveGState( cg );
+ CGContextTranslateCTM( cg, 0, bounds.size.width );
+ CGContextScaleCTM( cg, 1, -1 );
+ QDPictDrawToCGContext( cg, bounds, cgPictRef );
+ CGContextRestoreGState( cg );
+#endif
+#else
+ PicHandle pict = (PicHandle)GetHMETAFILE();
+ wxMacPortSetter helper( dc );
+ Rect picFrame;
+ DrawPicture( pict, wxMacGetPictureBounds( pict, &picFrame ) );
+#endif
+ }
+
+ return true;
+}
+
+wxSize wxMetaFile::GetSize() const
+{
+ wxSize dataSize = wxDefaultSize;
+
+ if (Ok())