19using namespace Gdiplus;
26 HGLOBAL buffer = GlobalAlloc(GMEM_MOVEABLE, 0);
27 IStream *stream =
nullptr;
28 CreateStreamOnHGlobal(buffer, FALSE, &stream);
34 PixelFormat32bppPARGB,
42 gvwrite(job, (
const char*)GlobalLock(buffer), GlobalSize(buffer));
70 {0,
nullptr, 0,
nullptr,
nullptr}
#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)
static const int BYTES_PER_PIXEL
gvplugin_active_device_t device
unsigned char * imagedata
location of imagedata