34#include "nanosvg_private.h"
35#include "nanosvgrast_private.h"
37#define NANOSVG_ALL_COLOR_KEYWORDS
45 SvgBitmap(wxWindow *window,
const unsigned char *data,
const size_t len,
int width = 640,
int height = 480);
46 SvgBitmap(wxWindow *window,
const unsigned char *data,
const std::size_t len, wxSize siz);
47 SvgBitmap(wxWindow *window,
const wxString &data, wxSize siz);
58 {
return m_svgImage ? wxSize(m_svgImage->width, m_svgImage->height) : wxDefaultSize; }
63 static struct wxm_NSVGrasterizer* m_svgRast;
65 std::unique_ptr<wxm_NSVGimage,
decltype(std::free)*> m_svgImage{
nullptr, std::free};
67 wxWindow *m_window = NULL;
The definition of the base class of all cells the worksheet consists of.
A wxBitmap with a constructor that generates the image from SVG.
Definition: SvgBitmap.h:42
wxBitmap GetInvalidBitmap(int targetSize)
An "invalid bitmap" sign.
Definition: SvgBitmap.cpp:143
const SvgBitmap & SetSize(wxSize siz)
Sets the bitmap to a new size and renders the svg image at this size.
Definition: SvgBitmap.h:55
wxSize GetOriginalSize() const
Gets the original size of the svg image.
Definition: SvgBitmap.h:57
SvgBitmap(wxWindow *window, const unsigned char *data, const size_t len, int width=640, int height=480)
A constructor that loads the data into a wxBitmap.
const SvgBitmap & SetSize(int width, int height)
Sets the bitmap to a new size and renders the svg image at this size.
Definition: SvgBitmap.cpp:82