|
|
@@ -81,6 +81,10 @@ extern "C" pipi_image_t *pipi_load_gdiplus(const char *name) |
|
|
|
|
|
|
|
extern "C" int pipi_save_gdiplus(pipi_image_t *img, const char *name) |
|
|
|
{ |
|
|
|
ULONG_PTR token; |
|
|
|
Gdiplus::GdiplusStartupInput input; |
|
|
|
Gdiplus::GdiplusStartup(&token, &input, NULL); |
|
|
|
|
|
|
|
wchar_t const *fmt; |
|
|
|
if(strstr(name, ".gif")) |
|
|
|
fmt = L"image/gif"; |
|
|
@@ -121,10 +125,6 @@ extern "C" int pipi_save_gdiplus(pipi_image_t *img, const char *name) |
|
|
|
return -1; |
|
|
|
} |
|
|
|
|
|
|
|
ULONG_PTR token; |
|
|
|
Gdiplus::GdiplusStartupInput input; |
|
|
|
Gdiplus::GdiplusStartup(&token, &input, NULL); |
|
|
|
|
|
|
|
Gdiplus::Bitmap *b = new Gdiplus::Bitmap(img->w, img->h, |
|
|
|
PixelFormat32bppARGB); |
|
|
|
|
|
|
|