SVG doc header file:
Code: Select all
#include "wxSVG/SVGDocument.h"
Code: Select all
wxString FileName = "edit.svg";
wxSVGDocument* SVGDoc = new wxSVGDocument(); SVGDoc->Load(FileName);
wxImage EditImage = SVGDoc->Render();
wxStaticBitmap* bitmap = new wxStaticBitmap();
bitmap->SetBitmap(wxBitmap(EditImage));