#include "stdafx.h"
#include "GdiplusShunt.h"
//----------------------------------------------------------------------------
// Graphics APIs
//----------------------------------------------------------------------------
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFlushPtr)(GpGraphics *graphics, GpFlushIntention intention));
DEFINE_MEMBER(GdipFlush);
GpStatus WINGDIPAPI
GdipFlush(GpGraphics *graphics, GpFlushIntention intention)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipFlush == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipFlush);
}
if ( g_GdipFlush != NULL )
{
status = (*g_GdipFlush)(graphics, intention);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipCreateFromHDCPtr)(HDC hdc, GpGraphics **graphics));
DEFINE_MEMBER(GdipCreateFromHDC);
GpStatus WINGDIPAPI
GdipCreateFromHDC(HDC hdc, GpGraphics **graphics)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipCreateFromHDC == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipCreateFromHDC);
}
if ( g_GdipCreateFromHDC != NULL )
{
status = (*g_GdipCreateFromHDC)(hdc, graphics);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipCreateFromHDC2Ptr)(HDC hdc, HANDLE hDevice, GpGraphics **graphics));
DEFINE_MEMBER(GdipCreateFromHDC2);
GpStatus WINGDIPAPI
GdipCreateFromHDC2(HDC hdc, HANDLE hDevice, GpGraphics **graphics)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipCreateFromHDC2 == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipCreateFromHDC2);
}
if ( g_GdipCreateFromHDC2 != NULL )
{
status = (*g_GdipCreateFromHDC2)(hdc, hDevice, graphics);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipCreateFromHWNDPtr)(HWND hwnd, GpGraphics **graphics));
DEFINE_MEMBER(GdipCreateFromHWND);
GpStatus WINGDIPAPI
GdipCreateFromHWND(HWND hwnd, GpGraphics **graphics)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipCreateFromHWND == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipCreateFromHWND);
}
if ( g_GdipCreateFromHWND != NULL )
{
status = (*g_GdipCreateFromHWND)(hwnd, graphics);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipCreateFromHWNDICMPtr)(HWND hwnd, GpGraphics **graphics));
DEFINE_MEMBER(GdipCreateFromHWNDICM);
GpStatus WINGDIPAPI
GdipCreateFromHWNDICM(HWND hwnd, GpGraphics **graphics)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipCreateFromHWNDICM == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipCreateFromHWNDICM);
}
if ( g_GdipCreateFromHWNDICM != NULL )
{
status = (*g_GdipCreateFromHWNDICM)(hwnd, graphics);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDeleteGraphicsPtr)(GpGraphics *graphics));
DEFINE_MEMBER(GdipDeleteGraphics);
GpStatus WINGDIPAPI
GdipDeleteGraphics(GpGraphics *graphics)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDeleteGraphics == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDeleteGraphics);
}
if ( g_GdipDeleteGraphics != NULL )
{
status = (*g_GdipDeleteGraphics)(graphics);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetDCPtr)(GpGraphics* graphics, HDC * hdc));
DEFINE_MEMBER(GdipGetDC);
GpStatus WINGDIPAPI
GdipGetDC(GpGraphics* graphics, HDC * hdc)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipGetDC == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetDC);
}
if ( g_GdipGetDC != NULL )
{
status = (*g_GdipGetDC)(graphics, hdc);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipReleaseDCPtr)(GpGraphics* graphics, HDC hdc));
DEFINE_MEMBER(GdipReleaseDC);
GpStatus WINGDIPAPI
GdipReleaseDC(GpGraphics* graphics, HDC hdc)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipReleaseDC == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipReleaseDC);
}
if ( g_GdipReleaseDC != NULL )
{
status = (*g_GdipReleaseDC)(graphics, hdc);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetCompositingModePtr)(GpGraphics *graphics, CompositingMode compositingMode));
DEFINE_MEMBER(GdipSetCompositingMode);
GpStatus WINGDIPAPI
GdipSetCompositingMode(GpGraphics *graphics, CompositingMode compositingMode)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipSetCompositingMode == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetCompositingMode);
}
if ( g_GdipSetCompositingMode != NULL )
{
status = (*g_GdipSetCompositingMode)(graphics, compositingMode);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetCompositingModePtr)(GpGraphics *graphics, CompositingMode *compositingMode));
DEFINE_MEMBER(GdipGetCompositingMode);
GpStatus WINGDIPAPI
GdipGetCompositingMode(GpGraphics *graphics, CompositingMode *compositingMode)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipGetCompositingMode == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetCompositingMode);
}
if ( g_GdipGetCompositingMode != NULL )
{
status = (*g_GdipGetCompositingMode)(graphics, compositingMode);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetRenderingOriginPtr)(GpGraphics *graphics, INT x, INT y));
DEFINE_MEMBER(GdipSetRenderingOrigin);
GpStatus WINGDIPAPI
GdipSetRenderingOrigin(GpGraphics *graphics, INT x, INT y)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipSetRenderingOrigin == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipSetRenderingOrigin);
}
if ( g_GdipSetRenderingOrigin != NULL )
{
status = (*g_GdipSetRenderingOrigin)(graphics, x, y);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGetRenderingOriginPtr)(GpGraphics *graphics, INT *x, INT *y));
DEFINE_MEMBER(GdipGetRenderingOrigin);
GpStatus WINGDIPAPI
GdipGetRenderingOrigin(GpGraphics *graphics, INT *x, INT *y)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipGetRenderingOrigin == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipGetRenderingOrigin);
}
if ( g_GdipGetRenderingOrigin != NULL )
{
status = (*g_GdipGetRenderingOrigin)(graphics, x, y);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipSetCompositingQualityPtr)(GpGraphics *graphics,
CompositingQuality compositingQuality));
DEFINE_MEMBER(GdipSetCompositingQuality);
GpStatus WINGDIPAPI
GdipSetCompositingQuality(GpGraphics *graphics,
CompositingQuality compositingQuality)
{
GpStatus status = GdiplusNotInitialized;
i
没有合适的资源?快使用搜索试试~ 我知道了~
Windows Mobile上GDI+开发库
共54个文件
h:35个
cpp:13个
lib:3个
3星 · 超过75%的资源 需积分: 10 84 下载量 146 浏览量
2009-09-24
18:02:41
上传
评论 2
收藏 516KB ZIP 举报
温馨提示
Recently, I was porting a video player application to Windows CE 6.0 which uses heavily a lot of graphics. I was quite disappointed when I realized that Microsoft didn't distribute Gdiplus.lib with their SDK for Windows CE 5.0 and 6.0. Since I had so much done with GDI+, there was no way to throw that away. So, I developed my own wrapper around the GDI+ dll and hooked it up so it can be used the same way as on the desktop. This is the main reason I am releasing this library. I hope you will find it useful for your development needs as well.
资源推荐
资源详情
资源评论
收起资源包目录
LibGdiplus_Src.zip (54个子文件)
LibGDIPlus
stdafx.cpp 292B
Release
LibGDIPlus.lib 606KB
LibGDIPlus.vcproj 13KB
stdafx.h 520B
Gdiplus_Brush.cpp 68KB
GdiplusShunt.h 1KB
GdiplusPlatform.h 792B
wince_build.vsprops 413B
Windows Mobile 5.0 Pocket PC SDK 2 (ARMV4I)
Release
LibGDIPlus.lib 848KB
Debug
Gdiplus_Cached.cpp 9KB
Gdiplus_Image.cpp 64KB
Gdiplus_Pen.cpp 12KB
Windows Mobile 6 Professional SDK (ARMV4I)
Release
LibGDIPlus.lib 848KB
Debug
Gdiplus_String.cpp 22KB
Gdiplus_PlatformInit.cpp 4KB
Gdiplus_Region.cpp 22KB
Gdiplus_Graphics.cpp 131KB
SDKInclude
GdiPlus.h 2KB
GdiPlusHeaders.h 28KB
GdiPlusBrush.h 27KB
GdiPlusGraphics.h 87KB
GdiPlusFontFamily.h 4KB
GdiPlusColor.h 10KB
GdiPlusInit.h 4KB
GdiPlusImageCodec.h 1KB
GdiPlusImaging.h 25KB
GdiPlusMetaFile.h 12KB
GdiPlusMetaHeader.h 8KB
GdiPlusColorMatrix.h 2KB
gdipluseffects.h 12KB
GdiPlusRegion.h 15KB
GdiPlusGpStubs.h 3KB
GdiPlusPixelFormats.h 6KB
GdiPlusMatrix.h 9KB
GdiPlusMem.h 790B
GdiPlusBitmap.h 25KB
GdiPlusFontCollection.h 3KB
GdiPlusPath.h 46KB
GdiPlusTypes.h 16KB
GdiPlusBase.h 835B
WinGDI_Suppl_CE.h 15KB
GdiPlusPen.h 13KB
GdiPlusFont.h 6KB
GdiPlusFlat.h 86KB
GdiPlusStringFormat.h 8KB
GdiPlusEnums.h 48KB
GdiPlusimageAttributes.h 13KB
GdiPlusLineCaps.h 7KB
GdiPlusCachedBitmap.h 1KB
Gdiplus_Font.cpp 24KB
win32_build.vsprops 437B
Gdiplus_Matrix.cpp 14KB
Gdiplus_Path.cpp 53KB
Debug
Gdiplus_Cap.cpp 17KB
共 54 条
- 1
资源评论
- 彬少2012-11-09用不了,只能参考一下
- mingz2562016-02-18以为在Wince上可用,实际上用不了
- f1d2m32012-04-10mobile下好像不支持
大招至胜
- 粉丝: 741
- 资源: 24
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功