20using namespace Gdiplus;
27 HGLOBAL buffer = GlobalAlloc(GMEM_MOVEABLE, 0);
28 IStream *stream =
nullptr;
29 CreateStreamOnHGlobal(buffer, FALSE, &stream);
35 PixelFormat32bppPARGB,
43 gvwrite(job, (
const char*)GlobalLock(buffer), GlobalSize(buffer));
71 {0,
nullptr, 0,
nullptr,
nullptr}
Arithmetic helper functions.
#define GVDEVICE_DOES_TRUECOLOR
#define GVDEVICE_BINARY_FORMAT
size_t gvwrite(GVJ_t *job, const char *s, size_t len)
static gvdevice_features_t device_features_gdiplus
gvplugin_installed_t gvdevice_gdiplus_types_for_cairo[]
static void gdiplus_format(GVJ_t *job)
static gvdevice_engine_t gdiplus_engine
void SaveBitmapToStream(Bitmap &bitmap, IStream *stream, int format)
gvplugin_active_device_t device
unsigned char * imagedata
location of imagedata