From: arif Date: Tue, 3 Mar 2009 18:01:41 +0000 (+0000) Subject: gdiplus is added to support bmp formats X-Git-Tag: LAST_LIBGRAPH~32^2~2329 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b92a9464c756a7dd9dd4e9736d52297c3352b073;p=graphviz gdiplus is added to support bmp formats --- diff --git a/plugin/gdiplus/gvplugin_gdiplus.vcproj b/plugin/gdiplus/gvplugin_gdiplus.vcproj new file mode 100644 index 000000000..01ed54b6a --- /dev/null +++ b/plugin/gdiplus/gvplugin_gdiplus.vcproj @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugin/gdiplus/gvrender_gdiplus.cpp b/plugin/gdiplus/gvrender_gdiplus.cpp index a8bedae89..7e0250410 100755 --- a/plugin/gdiplus/gvrender_gdiplus.cpp +++ b/plugin/gdiplus/gvrender_gdiplus.cpp @@ -29,7 +29,7 @@ #include #include -extern "C" size_t gvdevice_write(GVJ_t *job, const unsigned char *s, unsigned int len); +extern "C" size_t gvwrite(GVJ_t *job, const unsigned char *s, unsigned int len); using namespace std; using namespace Gdiplus; @@ -99,7 +99,7 @@ static void gdiplusgen_end_job(GVJ_t *job) HGLOBAL buffer = NULL; GetHGlobalFromStream(stream, &buffer); stream->Release(); - gvdevice_write(job, (unsigned char*)GlobalLock(buffer), GlobalSize(buffer)); + gvwrite(job, (unsigned char*)GlobalLock(buffer), GlobalSize(buffer)); GlobalFree(buffer); /* since this is an internal job, shut down GDI+ */