![]() |
wxMaxima
|
#include <SvgBitmap.h>
Public Member Functions | |
SvgBitmap (const unsigned char *data, size_t len, int width=640, int height=480, int scaleFactor=1) | |
A constructor that loads the data into a wxBitmap. | |
SvgBitmap (const unsigned char *data, size_t len, wxSize siz, int scaleFactor=1) | |
SvgBitmap (SvgBitmap &&)=delete | |
SvgBitmap & | operator= (SvgBitmap &&o) |
const SvgBitmap & | SetSize (int width, int height) |
Sets the bitmap to a new size and renders the svg image at this size. | |
const SvgBitmap & | SetSize (wxSize siz) |
Sets the bitmap to a new size and renders the svg image at this size. | |
wxSize | GetOriginalSize () const |
Gets the original size of the svg image. | |
Static Public Member Functions | |
static wxBitmap | RGBA2wxBitmap (const unsigned char imgdata[], const int &width, const int &height, const int &scaleFactor=1) |
Converts rgba data to a wxBitmap. | |
static wxBitmap | GetInvalidBitmap (int targetSize) |
A wxBitmap with a constructor that generates the image from SVG.
|
static |
An "invalid bitmap" sign
We should make the image static and generate it on start-up so whenever we need it it already would be available as a refcounted object and therefore be likely to be available even if the problem was a failing malloc(). But with wx3.0 gtk crashes in this case.