git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57376
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/dcsvg.h"
#include "wx/wfstream.h"
#include "wx/dcsvg.h"
#include "wx/wfstream.h"
+#include "wx/filename.h"
#define wxSVG_DEBUG FALSE
// or TRUE to see the calls being executed
#define wxSVG_DEBUG FALSE
// or TRUE to see the calls being executed
//save it
bool bPNG_OK = myBitmap.SaveFile(sPNG,wxBITMAP_TYPE_PNG);
//save it
bool bPNG_OK = myBitmap.SaveFile(sPNG,wxBITMAP_TYPE_PNG);
+// reference the bitmap from the SVG doc
+// only use filename & ext
+ sPNG = sPNG.AfterLast(wxFileName::GetPathSeparator());
+
// refrence the bitmap from the SVG doc
int w = myBitmap.GetWidth();
int h = myBitmap.GetHeight();
// refrence the bitmap from the SVG doc
int w = myBitmap.GetWidth();
int h = myBitmap.GetHeight();