#include <windows.h>#include <stdlib.h>#include "ut_string.h"#include "ut_bytebuf.h"#include "ie_impGraphic.h"#include "fg_GraphicRaster.h"#include "ut_assert.h"#include "xap_Module.h"Classes | |
| class | GpImage |
| struct | GdiplusStartupInput |
| struct | GdiplusStartupOutput |
Typedefs | |
| typedef ULONG_PTR | Status |
| typedef ULONG_PTR | EncoderParameters |
| typedef const GdiplusStartupInput * | input |
| typedef const GdiplusStartupInput OUT GdiplusStartupOutput * | output |
| typedef GpImage ** | image |
| typedef IStream * | stream |
| typedef IStream CLSID * | clsidEncoder |
| typedef IStream CLSID EncoderParameters * | encoderParams |
| typedef GUID * | format |
Functions | |
| typedef | Status (CALLBACK *GDIPLUSSTARTUP)(ULONG_PTR *token |
| typedef | void (CALLBACK *GDIPLUSSHUTDOWN)(ULONG_PTR token) |
| Status | GdiplusStartup (ULONG_PTR *token, const GdiplusStartupInput *input, GdiplusStartupOutput *output) |
| void | GdiplusShutdown (ULONG_PTR token) |
| Status | GdipLoadImageFromStream (IStream *stream, GpImage **image) |
| Status | GdipSaveImageToStream (GpImage *image, IStream *stream, CLSID *clsidEncoder, EncoderParameters *encoderParams) |
| Status | GdipGetImageRawFormat (GpImage *image, GUID *format) |
| Status | GdipDisposeImage (GpImage *image) |
| void | initGDIPlus () |
| bool | isGDIPlusAvailable () |
| void | shutDownGDIPlus () |
| UT_Error | GDIconvertGraphic (UT_ByteBuf *pBB, UT_ByteBuf *pBBOut, std::string &mimetype) |
Variables | |
| CLSID | gdip_png_encoder_guid = { 0x557cf406, 0x1a04, 0x11d3, { 0x9a, 0x73, 0x00, 0x00, 0xf8, 0x1e, 0xf3, 0x2e } } |
| CLSID | gdip_jpeg_encoder_guid = { 0x557cf401, 0x1a04, 0x11d3, { 0x9a, 0x73, 0x00, 0x00, 0xf8, 0x1e, 0xf3, 0x2e } } |
| GUID | gdip_jpeg_guid = { 0xb96b3cae, 0x0728, 0x11d3, { 0x9d, 0x7b, 0x00, 0x00, 0xf8, 0x1e, 0xf3, 0x2e } } |
| static ULONG_PTR | gdiplusToken = 0 |
| static HINSTANCE | gdipluslib = NULL |
| typedef IStream CLSID* clsidEncoder |
| typedef ULONG_PTR EncoderParameters |
| typedef IStream CLSID EncoderParameters* encoderParams |
| typedef GUID* format |
| typedef const GdiplusStartupInput* input |
| typedef const GdiplusStartupInput OUT GdiplusStartupOutput* output |
| typedef Status |
| typedef IStream* stream |
| UT_Error GDIconvertGraphic | ( | UT_ByteBuf * | pBB, | |
| UT_ByteBuf * | pBBOut, | |||
| std::string & | mimetype | |||
| ) |
References UT_ByteBuf::append(), gdip_jpeg_encoder_guid, gdip_jpeg_guid, gdip_png_encoder_guid, GdipDisposeImage(), GdipGetImageRawFormat(), GdipLoadImageFromStream(), GdipSaveImageToStream(), UT_ByteBuf::getLength(), UT_ByteBuf::getPointer(), HRESULT(), and UT_ERROR.
Referenced by IE_ImpGraphic_Win32Native::_convertGraphic().
References gdipluslib.
Referenced by GDIconvertGraphic().
References gdipluslib.
Referenced by GDIconvertGraphic().
References gdipluslib.
Referenced by GDIconvertGraphic().
| void GdiplusShutdown | ( | ULONG_PTR | token | ) |
References gdipluslib.
Referenced by shutDownGDIPlus().
| Status GdiplusStartup | ( | ULONG_PTR * | token, | |
| const GdiplusStartupInput * | input, | |||
| GdiplusStartupOutput * | output | |||
| ) |
References gdipluslib.
Referenced by initGDIPlus().
| Status GdipSaveImageToStream | ( | GpImage * | image, | |
| IStream * | stream, | |||
| CLSID * | clsidEncoder, | |||
| EncoderParameters * | encoderParams | |||
| ) |
References gdipluslib.
Referenced by GDIconvertGraphic().
| void initGDIPlus | ( | ) |
| bool isGDIPlusAvailable | ( | ) |
References gdiplusToken, and initGDIPlus().
Referenced by IE_ImpGraphic_Win32Native::_convertGraphic().
| void shutDownGDIPlus | ( | ) |
References GdiplusShutdown(), and gdiplusToken.
| typedef Status | ( | CALLBACK * | GDIPLUSSTARTUP | ) |
| typedef void | ( | CALLBACK * | GDIPLUSSHUTDOWN | ) |
| CLSID gdip_jpeg_encoder_guid = { 0x557cf401, 0x1a04, 0x11d3, { 0x9a, 0x73, 0x00, 0x00, 0xf8, 0x1e, 0xf3, 0x2e } } |
Referenced by GDIconvertGraphic().
| GUID gdip_jpeg_guid = { 0xb96b3cae, 0x0728, 0x11d3, { 0x9d, 0x7b, 0x00, 0x00, 0xf8, 0x1e, 0xf3, 0x2e } } |
Referenced by GDIconvertGraphic().
| CLSID gdip_png_encoder_guid = { 0x557cf406, 0x1a04, 0x11d3, { 0x9a, 0x73, 0x00, 0x00, 0xf8, 0x1e, 0xf3, 0x2e } } |
Referenced by GDIconvertGraphic().
HINSTANCE gdipluslib = NULL [static] |
ULONG_PTR gdiplusToken = 0 [static] |
Referenced by gdip_init(), initGDIPlus(), isGDIPlusAvailable(), and shutDownGDIPlus().
1.7.1