函数 | |
HDRAW WINAPI | XDraw_Create (HWINDOW hWindow) |
绘制_创建 创建图形绘制模块实例. 更多... | |
HDRAW WINAPI | XDraw_CreateGDI (HWINDOW hWindow, HDC hdc) |
@绘制_创建GDI 创建图形绘制模块实例 更多... | |
void WINAPI | XDraw_Destroy (HDRAW hDraw) |
绘制_销毁 销毁图形绘制模块实例句柄. 更多... | |
void WINAPI | XDraw_SetOffset (HDRAW hDraw, int x, int y) |
绘制_置偏移 设置坐标偏移量,X向左偏移为负数,向右偏移为正数. 更多... | |
void WINAPI | XDraw_GetOffset (HDRAW hDraw, __out int *pX, __out int *pY) |
绘制_取偏移 获取坐标偏移量,X向左偏移为负数,向右偏移为正数. 更多... | |
void WINAPI | XDraw_GDI_RestoreGDIOBJ (HDRAW hDraw) |
@绘制_GDI_还原状态 还原状态,释放用户绑定的GDI对象,例如画刷,画笔 更多... | |
int WINAPI | XDraw_GDI_SetBkMode (HDRAW hDraw, BOOL bTransparent) |
@绘制_GDI_置背景模式 SetBkMode() 参见MSDN 更多... | |
int WINAPI | XDraw_GDI_SelectClipRgn (HDRAW hDraw, HRGN hRgn) |
@绘制_GDI_选择裁剪区域 选择一个区域作为当前裁剪区域,注意:该函数只对GDI有效 更多... | |
HBRUSH WINAPI | XDraw_GDI_CreateSolidBrush (HDRAW hDraw, COLORREF crColor) |
@绘制_GDI_创建实心画刷 GDI创建具有指定的纯色逻辑刷 更多... | |
HPEN WINAPI | XDraw_GDI_CreatePen (HDRAW hDraw, int fnPenStyle, int width, COLORREF crColor) |
@绘制_GDI_创建画笔 GDI创建一个逻辑笔,指定的样式,宽度和颜色,随后的笔可以选择到设备上下文,用于绘制线条和曲线 更多... | |
HRGN WINAPI | XDraw_GDI_CreateRectRgn (HDRAW hDraw, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect) |
@绘制_GDI_创建矩形区域 GDI创建矩形区域 更多... | |
HRGN WINAPI | XDraw_GDI_CreateRoundRectRgn (HDRAW hDraw, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect, int nWidthEllipse, int nHeightEllipse) |
@绘制_GDI_创建圆角矩形区域 GDI创建一个圆角的矩形区域 更多... | |
HRGN WINAPI | XDraw_GDI_CreatePolygonRgn (HDRAW hDraw, out_buffer_ POINT *pPt, int cPoints, int fnPolyFillMode) |
@绘制_GDI_创建多边形区域 GDI创建一个多边形区域 更多... | |
BOOL WINAPI | XDraw_GDI_Rectangle (HDRAW hDraw, int nLeftRect, int nTopRect, int nRightRect, int nBottomRect) |
@绘制_GDI_矩形 绘制矩形,使用当前的画刷和画笔 更多... | |
BOOL WINAPI | XDraw_GDI_FillRgn (HDRAW hDraw, HRGN hrgn, HBRUSH hbr) |
@绘制_GID_填充区域 通过使用指定的画刷填充一个区域 更多... | |
BOOL WINAPI | XDraw_GDI_Ellipse (HDRAW hDraw, RECT *pRect) |
@绘制_GDI_椭圆 更多... | |
BOOL WINAPI | XDraw_GDI_FrameRgn (HDRAW hDraw, HRGN hrgn, HBRUSH hbr, int width, int height) |
@绘制_GDI_边框区域 绘制边框,使用指定的画刷绘制指定的区域的边框 更多... | |
BOOL WINAPI | XDraw_GDI_MoveToEx (HDRAW hDraw, int X, int Y, POINT *pPoint) |
@绘制_GDI_移动到起点 更新当前位置到指定点,并返回以前的位置 更多... | |
BOOL WINAPI | XDraw_GDI_LineTo (HDRAW hDraw, int nXEnd, int nYEnd) |
@绘制_GDI_线终点 函数绘制一条线从当前位置到,但不包括指定点 更多... | |
BOOL WINAPI | XDraw_GDI_Polyline (HDRAW hDraw, in_buffer_ POINT *pArrayPt, int arrayPtSize) |
@绘制_GDI_折线 Polyline() 参见MSDN 更多... | |
BOOL WINAPI | XDraw_GDI_DrawIconEx (HDRAW hDraw, int xLeft, int yTop, HICON hIcon, int cxWidth, int cyWidth, UINT istepIfAniCur, HBRUSH hbrFlickerFreeDraw, UINT diFlags) |
@绘制_GDI_图标扩展 绘制图标,DrawIconEx()参见MSDN 更多... | |
BOOL WINAPI | XDraw_GDI_BitBlt (HDRAW hDrawDest, int nXDest, int nYDest, int width, int height, HDC hdcSrc, int nXSrc, int nYSrc, DWORD dwRop) |
@绘制_GDI_复制 BitBlt() 参见MSDN 更多... | |
BOOL WINAPI | XDraw_GDI_BitBlt2 (HDRAW hDrawDest, int nXDest, int nYDest, int width, int height, HDRAW hDrawSrc, int nXSrc, int nYSrc, DWORD dwRop) |
@绘制_GDI_复制2 BitBlt() 参见MSDN 更多... | |
BOOL WINAPI | XDraw_GDI_AlphaBlend (HDRAW hDraw, int nXOriginDest, int nYOriginDest, int nWidthDest, int nHeightDest, HDC hdcSrc, int nXOriginSrc, int nYOriginSrc, int nWidthSrc, int nHeightSrc, int alpha) |
@绘制_GDI_带透明复制 AlphaBlend() 参见MSDN 更多... | |
COLORREF WINAPI | XDraw_GDI_SetPixel (HDRAW hDraw, int X, int Y, COLORREF crColor) |
@绘制_GDI_置像素颜色 函数设置在指定的坐标到指定的颜色的像素 更多... | |
HDC WINAPI | XDraw_GetHDC (HDRAW hDraw) |
绘制_取HDC 获取绑定的设备上下文HDC. 更多... | |
vint WINAPI | XDraw_GetD2dFactory (HDRAW hDraw) |
@绘制_取D2D工厂 更多... | |
vint WINAPI | XDraw_GetD2dWriteFactory (HDRAW hDraw) |
@绘制_取D2DWrite工厂 更多... | |
vint WINAPI | XDraw_GetD2dWICFactory (HDRAW hDraw) |
@绘制_取D2DWIC工厂 更多... | |
vint WINAPI | XDraw_GetD2dRenderTarget (HDRAW hDraw) |
@绘制_取D2D渲染目标 更多... | |
HFONTX WINAPI | XDraw_GetFont (HDRAW hDraw) |
@绘制_取字体 更多... | |
void WINAPI | XDraw_SetD2dTextRenderingMode (HDRAW hDraw, XC_DWRITE_RENDERING_MODE mode) |
@绘制_置D2D文本渲染模式 更多... | |
void WINAPI | XDraw_SetTextRenderingHint (HDRAW hDraw, int nType) |
@绘制_置文本炫彩质量 设置文本渲染质量GDI+ 更多... | |
void WINAPI | XDraw_D2D_Clear (HDRAW hDraw, COLORREF color) |
@绘制_D2D_清理 使用指定颜色清理画布 更多... | |
void WINAPI | XDraw_SetBrushColor (HDRAW hDraw, COLORREF color) |
绘制_置画刷颜色 设置画刷颜色. 更多... | |
void WINAPI | XDraw_SetTextVertical (HDRAW hDraw, BOOL bVertical) |
绘制_置文本垂直 设置文本垂直显示. 更多... | |
void WINAPI | XDraw_SetTextAlign (HDRAW hDraw, int nFlags) |
绘制_置文本对齐 设置文本对齐. 更多... | |
void WINAPI | XDraw_SetFont (HDRAW hDraw, HFONTX hFontx) |
绘制_置字体 设置字体. 更多... | |
void WINAPI | XDraw_SetLineWidth (HDRAW hDraw, int width) |
绘制_置线宽 设置线宽. 更多... | |
void WINAPI | XDraw_SetLineWidthF (HDRAW hDraw, float width) |
@绘制_置线宽F 设置线宽 更多... | |
void WINAPI | XDraw_SetClipRect (HDRAW hDraw, RECT *pRect) |
绘制_置裁剪区域 设置裁剪区域. 更多... | |
void WINAPI | XDraw_ClearClip (HDRAW hDraw) |
绘制_清除裁剪区域 清除裁剪区域. 更多... | |
void WINAPI | XDraw_EnableSmoothingMode (HDRAW hDraw, BOOL bEnable) |
绘制_启用平滑模式 启用平滑模式. 更多... | |
void WINAPI | XDraw_EnableWndTransparent (HDRAW hDraw, BOOL bTransparent) |
@绘制_启用窗口透明判断 当启用之后,调用GDI+函数时, 如果参数alpha=255,将自动修改为254, 应对GDI+的bug, 否则透明通道异常 更多... | |
void WINAPI | XDraw_FillRect (HDRAW hDraw, RECT *pRect) |
@绘制_填充矩形 更多... | |
void WINAPI | XDraw_FillRectF (HDRAW hDraw, RECTF *pRect) |
@绘制_填充矩形F 更多... | |
void WINAPI | XDraw_FillRectColor (HDRAW hDraw, RECT *pRect, COLORREF color) |
@绘制_填充矩形指定颜色 更多... | |
void WINAPI | XDraw_FillRectColorF (HDRAW hDraw, RECTF *pRect, COLORREF color) |
@绘制_填充矩形指定颜色F 更多... | |
void WINAPI | XDraw_FillEllipse (HDRAW hDraw, RECT *pRect) |
@绘制_填充椭圆 更多... | |
void WINAPI | XDraw_FillEllipseF (HDRAW hDraw, RECTF *pRect) |
@绘制_填充椭圆F 更多... | |
void WINAPI | XDraw_DrawEllipse (HDRAW hDraw, RECT *pRect) |
@绘制_椭圆 绘制椭圆边框 更多... | |
void WINAPI | XDraw_DrawEllipseF (HDRAW hDraw, RECTF *pRect) |
@绘制_椭圆F 绘制椭圆边框 更多... | |
void WINAPI | XDraw_FillRoundRect (HDRAW hDraw, RECT *pRect, int width, int height) |
@绘制_填充圆角矩形 填充圆角矩形 更多... | |
void WINAPI | XDraw_FillRoundRectF (HDRAW hDraw, RECTF *pRect, float width, float height) |
@绘制_填充圆角矩形F 填充圆角矩形 更多... | |
void WINAPI | XDraw_DrawRoundRect (HDRAW hDraw, RECT *pRect, int width, int height) |
绘制_圆角矩形 绘制圆角矩形边框. 更多... | |
void WINAPI | XDraw_DrawRoundRectF (HDRAW hDraw, RECTF *pRect, float width, float height) |
@绘制_圆角矩形F 绘制圆角矩形边框 更多... | |
void WINAPI | XDraw_FillRoundRectEx (HDRAW hDraw, RECT *pRect, int leftTop, int rightTop, int rightBottom, int leftBottom) |
绘制_填充圆角矩形扩展 填充圆角矩形. 更多... | |
void WINAPI | XDraw_FillRoundRectExF (HDRAW hDraw, RECTF *pRect, float leftTop, float rightTop, float rightBottom, float leftBottom) |
@绘制_填充圆角矩形扩展F 填充圆角矩形 更多... | |
void WINAPI | XDraw_DrawRoundRectEx (HDRAW hDraw, RECT *pRect, int leftTop, int rightTop, int rightBottom, int leftBottom) |
绘制_圆角矩形扩展 绘制圆角矩形边框 更多... | |
void WINAPI | XDraw_DrawRoundRectExF (HDRAW hDraw, RECTF *pRect, float leftTop, float rightTop, float rightBottom, float leftBottom) |
@绘制_圆角矩形扩展F 绘制圆角矩形边框 更多... | |
void WINAPI | XDraw_GradientFill2 (HDRAW hDraw, RECT *pRect, COLORREF color1, COLORREF color2, int mode) |
绘制_渐变填充2 渐变填充,从一种颜色过渡到另一种颜色. 更多... | |
void WINAPI | XDraw_GradientFill2F (HDRAW hDraw, RECTF *pRect, COLORREF color1, COLORREF color2, int mode) |
@绘制_渐变填充2F 渐变填充,从一种颜色过渡到另一种颜色 更多... | |
void WINAPI | XDraw_GradientFill4 (HDRAW hDraw, RECT *pRect, COLORREF color1, COLORREF color2, COLORREF color3, COLORREF color4, int mode) |
绘制_渐变填充4 渐变填充,从一种颜色过渡到另一种颜色. 更多... | |
void WINAPI | XDraw_GradientFill4F (HDRAW hDraw, RECTF *pRect, COLORREF color1, COLORREF color2, COLORREF color3, COLORREF color4, int mode) |
@绘制_渐变填充4F 渐变填充,从一种颜色过渡到另一种颜色 更多... | |
void WINAPI | XDraw_DrawRect (HDRAW hDraw, RECT *pRect) |
@绘制_矩形 绘制矩形边框 更多... | |
void WINAPI | XDraw_DrawRectF (HDRAW hDraw, RECTF *pRect) |
@绘制_矩形F 绘制矩形边框 更多... | |
void WINAPI | XDraw_DrawLine (HDRAW hDraw, int x1, int y1, int x2, int y2) |
绘制_线条 绘制线条. 更多... | |
void WINAPI | XDraw_DrawLineF (HDRAW hDraw, float x1, float y1, float x2, float y2) |
@绘制_线条F 绘制线条 更多... | |
void WINAPI | XDraw_DrawCurve (HDRAW hDraw, in_buffer_ POINT *points, int count, float tension) |
@绘制_曲线 D2D暂时留空 更多... | |
void WINAPI | XDraw_DrawCurveF (HDRAW hDraw, in_buffer_ POINTF *points, int count, float tension) |
@绘制_曲线F D2D暂时留空 更多... | |
void WINAPI | XDraw_DrawArc (HDRAW hDraw, int x, int y, int width, int height, float startAngle, float sweepAngle) |
@绘制_圆弧 更多... | |
void WINAPI | XDraw_DrawArcF (HDRAW hDraw, float x, float y, float width, float height, float startAngle, float sweepAngle) |
@绘制_圆弧F 更多... | |
void WINAPI | XDraw_FocusRect (HDRAW hDraw, RECT *pRect) |
绘制_焦点矩形 绘制焦点矩形. 更多... | |
void WINAPI | XDraw_FocusRectF (HDRAW hDraw, RECTF *pRect) |
@绘制_焦点矩形F 绘制焦点矩形 更多... | |
void WINAPI | XDraw_Dottedline (HDRAW hDraw, int x1, int y1, int x2, int y2) |
@绘制_虚线 绘制水平或垂直虚线. 更多... | |
void WINAPI | XDraw_DottedlineF (HDRAW hDraw, float x1, float y1, float x2, float y2) |
@绘制_虚线F 绘制水平或垂直虚线 更多... | |
void WINAPI | XDraw_DrawPolygon (HDRAW hDraw, in_buffer_ POINT *points, int nCount) |
绘制_多边形 绘制多边形. 更多... | |
void WINAPI | XDraw_DrawPolygonF (HDRAW hDraw, in_buffer_ POINTF *points, int nCount) |
@绘制_多边形F 绘制多边形 更多... | |
void WINAPI | XDraw_FillPolygon (HDRAW hDraw, in_buffer_ POINT *points, int nCount) |
绘制_填充多边形 填充多边形. 更多... | |
void WINAPI | XDraw_FillPolygonF (HDRAW hDraw, in_buffer_ POINTF *points, int nCount) |
@绘制_填充多边形F 填充多边形 更多... | |
void WINAPI | XDraw_Image (HDRAW hDraw, HIMAGE hImageFrame, int x, int y) |
绘制_图片 绘制图片. 更多... | |
void WINAPI | XDraw_ImageF (HDRAW hDraw, HIMAGE hImageFrame, float x, float y) |
@绘制_图片F 绘制图片 更多... | |
void WINAPI | XDraw_ImageEx (HDRAW hDraw, HIMAGE hImageFrame, int x, int y, int width, int height) |
@绘制_图片扩展 绘制图片 更多... | |
void WINAPI | XDraw_ImageExF (HDRAW hDraw, HIMAGE hImageFrame, float x, float y, float width, float height) |
@绘制_图片扩展F 绘制图片 更多... | |
void WINAPI | XDraw_ImageAdaptive (HDRAW hDraw, HIMAGE hImageFrame, RECT *pRect, BOOL bOnlyBorder) |
绘制_图片自适应 绘制图片. 更多... | |
void WINAPI | XDraw_ImageAdaptiveF (HDRAW hDraw, HIMAGE hImageFrame, RECTF *pRect, BOOL bOnlyBorder) |
@绘制_图片自适应F 绘制图片 更多... | |
void WINAPI | XDraw_ImageTile (HDRAW hDraw, HIMAGE hImageFrame, RECT *pRect, int flag) |
绘制_图片平铺 绘制图片. 更多... | |
void WINAPI | XDraw_ImageTileF (HDRAW hDraw, HIMAGE hImageFrame, RECTF *pRect, int flag) |
@绘制_图片平铺F 绘制图片 更多... | |
void WINAPI | XDraw_ImageSuper (HDRAW hDraw, HIMAGE hImageFrame, RECT *pRect, BOOL bClip) |
绘制_图片增强 绘制图片. 更多... | |
void WINAPI | XDraw_ImageSuperF (HDRAW hDraw, HIMAGE hImageFrame, RECTF *pRect, BOOL bClip) |
@绘制_图片增强F 绘制图片 更多... | |
void WINAPI | XDraw_ImageSuperEx (HDRAW hDraw, HIMAGE hImageFrame, RECT *pRcDest, RECT *pRcSrc) |
绘制_图片增强2 绘制图片. 更多... | |
void WINAPI | XDraw_ImageSuperExF (HDRAW hDraw, HIMAGE hImageFrame, RECTF *pRcDest, RECTF *pRcSrc) |
@绘制_图片增强扩展F 绘制图片 更多... | |
void WINAPI | XDraw_ImageSuperMask (HDRAW hDraw, HIMAGE hImageFrame, HIMAGE hImageFrameMask, RECT *pRect, RECT *pRectMask, BOOL bClip) |
绘制_图片增强遮盖 绘制带遮盖的图片. D2D留空 更多... | |
void WINAPI | XDraw_ImageMask (HDRAW hDraw, HIMAGE hImageFrame, HIMAGE hImageFrameMask, RECT *pRect, int x, int y) |
绘制_图片遮盖 绘制带遮盖的图片.D2D留空 更多... | |
void WINAPI | XDraw_ImageMaskRect (HDRAW hDraw, HIMAGE hImageFrame, RECT *pRect, RECT *pRcMask, RECT *pRcRoundAngle) |
@绘制_图片遮盖矩形 使用矩形作为遮罩 更多... | |
void WINAPI | XDraw_ImageMaskEllipse (HDRAW hDraw, HIMAGE hImageFrame, RECT *pRect, RECT *pRcMask) |
@绘制_图片遮盖圆型 使用圆形作为遮罩 更多... | |
void WINAPI | XDraw_DrawText (HDRAW hDraw, const wchar_t *pString, int nCount, RECT *pRect) |
@绘制_文本指定矩形 更多... | |
void WINAPI | XDraw_DrawTextF (HDRAW hDraw, const wchar_t *pString, int nCount, RECTF *pRect) |
@绘制_文本指定矩形F 更多... | |
void WINAPI | XDraw_DrawTextUnderline (HDRAW hDraw, const wchar_t *pString, int nCount, RECT *pRect, COLORREF colorLine) |
绘制_文本下划线 参见MSDN. 更多... | |
void WINAPI | XDraw_DrawTextUnderlineF (HDRAW hDraw, const wchar_t *pString, int nCount, RECTF *pRect, COLORREF colorLine) |
@绘制_文本下划线F 更多... | |
void WINAPI | XDraw_TextOut (HDRAW hDraw, int xStart, int yStart, const wchar_t *pString, int cbString) |
@绘制_文本 更多... | |
void WINAPI | XDraw_TextOutF (HDRAW hDraw, float xStart, float yStart, const wchar_t *pString, int cbString) |
@绘制_文本F 更多... | |
void WINAPI | XDraw_TextOutEx (HDRAW hDraw, int xStart, int yStart, const wchar_t *pString) |
@绘制_文本扩展 更多... | |
void WINAPI | XDraw_TextOutExF (HDRAW hDraw, float xStart, float yStart, const wchar_t *pString) |
@绘制_文本扩展F 更多... | |
void WINAPI | XDraw_TextOutA (HDRAW hDraw, int xStart, int yStart, const char *pString) |
@绘制_文本A 更多... | |
void WINAPI | XDraw_TextOutAF (HDRAW hDraw, float xStart, float yStart, const char *pString) |
@绘制_文本AF 更多... | |
void WINAPI | XDraw_DrawSvgSrc (HDRAW hDraw, HSVG hSvg) |
@绘制_SVG源 更多... | |
void WINAPI | XDraw_DrawSvg (HDRAW hDraw, HSVG hSvg, int x, int y) |
@绘制_SVG 更多... | |
void WINAPI | XDraw_DrawSvgEx (HDRAW hDraw, HSVG hSvg, int x, int y, int nWidth, int nHeight) |
@绘制_SVG扩展 更多... | |
void WINAPI | XDraw_DrawSvgSize (HDRAW hDraw, HSVG hSvg, int nWidth, int nHeight) |
@绘制_SVG大小 更多... | |
图形绘制接口,支持画布偏移量设置,解决GDI兼容问题,以及预防GDI泄露,减少代码书写.
XDraw_Destroy_()销毁图形绘制模块实例句柄,当用户创建GDI对象(位图,画刷,字体,画笔)忘记销毁,图形绘制模块销毁时会自动帮用户销毁,防止GDI泄露,并且还原到初始状态.
XDraw_GetOffset_()还原初始状态,当用户调用该函数,还原到初始的状态,释放用户创建的GDI对象,恢复初始选定对象(位图,画刷,字体,画笔).
D2D支持需要开启 XInitXCGUI()
void WINAPI XDraw_ClearClip | ( | HDRAW | hDraw | ) |
绘制_清除裁剪区域 清除裁剪区域.
hDraw | 图形绘制句柄. |
HDRAW WINAPI XDraw_Create | ( | HWINDOW | hWindow | ) |
HDRAW WINAPI XDraw_CreateGDI | ( | HWINDOW | hWindow, |
HDC | hdc | ||
) |
@绘制_创建GDI 创建图形绘制模块实例
hWindow | 窗口句柄 |
hdc | hdc句柄 |
void WINAPI XDraw_D2D_Clear | ( | HDRAW | hDraw, |
COLORREF | color | ||
) |
@绘制_D2D_清理 使用指定颜色清理画布
hDraw | 图形绘制句柄 |
color | 颜色值, 请使用宏: RGBA() |
void WINAPI XDraw_Destroy | ( | HDRAW | hDraw | ) |
绘制_销毁 销毁图形绘制模块实例句柄.
hDraw | 图形绘制句柄. |
void WINAPI XDraw_Dottedline | ( | HDRAW | hDraw, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
void WINAPI XDraw_DottedlineF | ( | HDRAW | hDraw, |
float | x1, | ||
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
@绘制_虚线F 绘制水平或垂直虚线
hDraw | 图形绘制句柄. |
x1 | 起点x坐标. |
y1 | 起点y坐标. |
x2 | 结束点x坐标. |
y2 | 结束点y坐标. |
void WINAPI XDraw_DrawArc | ( | HDRAW | hDraw, |
int | x, | ||
int | y, | ||
int | width, | ||
int | height, | ||
float | startAngle, | ||
float | sweepAngle | ||
) |
@绘制_圆弧
hDraw | 图形绘制句柄 |
x | 坐标 |
y | 坐标 |
width | 宽度 |
height | 高度 |
startAngle | 起始角度 |
sweepAngle | 绘制角度, 从起始角度开始计算 |
void WINAPI XDraw_DrawArcF | ( | HDRAW | hDraw, |
float | x, | ||
float | y, | ||
float | width, | ||
float | height, | ||
float | startAngle, | ||
float | sweepAngle | ||
) |
@绘制_圆弧F
hDraw | 图形绘制句柄 |
x | 坐标 |
y | 坐标 |
width | 宽度 |
height | 高度 |
startAngle | 起始角度 |
sweepAngle | 绘制角度, 从起始角度开始计算 |
void WINAPI XDraw_DrawCurve | ( | HDRAW | hDraw, |
in_buffer_ POINT * | points, | ||
int | count, | ||
float | tension | ||
) |
@绘制_曲线 D2D暂时留空
hDraw | 图形绘制句柄. |
points | 坐标点数组 |
count | 数组大小 |
tension | 大于或等于0.0F的值,指定曲线的张力。D2D 忽略此参数 |
void WINAPI XDraw_DrawCurveF | ( | HDRAW | hDraw, |
in_buffer_ POINTF * | points, | ||
int | count, | ||
float | tension | ||
) |
@绘制_曲线F D2D暂时留空
hDraw | 图形绘制句柄. |
points | 坐标点数组 |
count | 数组大小 |
tension | 大于或等于0.0F的值,指定曲线的张力。D2D 忽略此参数 |
void WINAPI XDraw_DrawEllipse | ( | HDRAW | hDraw, |
RECT * | pRect | ||
) |
@绘制_椭圆 绘制椭圆边框
hDraw | 图形绘制句柄. |
pRect | 矩形区域. |
void WINAPI XDraw_DrawEllipseF | ( | HDRAW | hDraw, |
RECTF * | pRect | ||
) |
@绘制_椭圆F 绘制椭圆边框
hDraw | 图形绘制句柄. |
pRect | 矩形区域. |
void WINAPI XDraw_DrawLine | ( | HDRAW | hDraw, |
int | x1, | ||
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
绘制_线条 绘制线条.
hDraw | 图形绘制句柄. |
x1 | 坐标. |
y1 | 坐标. |
x2 | 坐标. |
y2 | 坐标. |
void WINAPI XDraw_DrawLineF | ( | HDRAW | hDraw, |
float | x1, | ||
float | y1, | ||
float | x2, | ||
float | y2 | ||
) |
@绘制_线条F 绘制线条
hDraw | 图形绘制句柄. |
x1 | 坐标. |
y1 | 坐标. |
x2 | 坐标. |
y2 | 坐标. |
void WINAPI XDraw_DrawPolygon | ( | HDRAW | hDraw, |
in_buffer_ POINT * | points, | ||
int | nCount | ||
) |
绘制_多边形 绘制多边形.
hDraw | 图形绘制句柄. |
points | 顶点坐标数组. |
nCount | 顶点数量. |
void WINAPI XDraw_DrawPolygonF | ( | HDRAW | hDraw, |
in_buffer_ POINTF * | points, | ||
int | nCount | ||
) |
@绘制_多边形F 绘制多边形
hDraw | 图形绘制句柄. |
points | 顶点坐标数组. |
nCount | 顶点数量. |
void WINAPI XDraw_DrawRectF | ( | HDRAW | hDraw, |
RECTF * | pRect | ||
) |
@绘制_矩形F 绘制矩形边框
hDraw | 图形绘制句柄. |
pRect | 矩形坐标 |
void WINAPI XDraw_DrawRoundRect | ( | HDRAW | hDraw, |
RECT * | pRect, | ||
int | width, | ||
int | height | ||
) |
绘制_圆角矩形 绘制圆角矩形边框.
hDraw | 图形绘制句柄. |
pRect | 矩形坐标. |
width | 圆角宽度. |
height | 圆角高度. |
void WINAPI XDraw_DrawRoundRectEx | ( | HDRAW | hDraw, |
RECT * | pRect, | ||
int | leftTop, | ||
int | rightTop, | ||
int | rightBottom, | ||
int | leftBottom | ||
) |
绘制_圆角矩形扩展 绘制圆角矩形边框
hDraw | 图形绘制句柄. |
pRect | 坐标. |
leftTop | 圆角大小. |
rightTop | 圆角大小. |
rightBottom | 圆角大小. |
leftBottom | 圆角大小. |
void WINAPI XDraw_DrawRoundRectExF | ( | HDRAW | hDraw, |
RECTF * | pRect, | ||
float | leftTop, | ||
float | rightTop, | ||
float | rightBottom, | ||
float | leftBottom | ||
) |
@绘制_圆角矩形扩展F 绘制圆角矩形边框
hDraw | 图形绘制句柄. |
pRect | 坐标. |
leftTop | 圆角大小. |
rightTop | 圆角大小. |
rightBottom | 圆角大小. |
leftBottom | 圆角大小. |
void WINAPI XDraw_DrawRoundRectF | ( | HDRAW | hDraw, |
RECTF * | pRect, | ||
float | width, | ||
float | height | ||
) |
@绘制_圆角矩形F 绘制圆角矩形边框
hDraw | 图形绘制句柄. |
pRect | 矩形坐标. |
width | 圆角宽度. |
height | 圆角高度. |
void WINAPI XDraw_DrawSvg | ( | HDRAW | hDraw, |
HSVG | hSvg, | ||
int | x, | ||
int | y | ||
) |
@绘制_SVG
hDraw | 图形绘制句柄 |
hSvg | SVG句柄 |
x | x坐标 |
y | y坐标 |
void WINAPI XDraw_DrawSvgEx | ( | HDRAW | hDraw, |
HSVG | hSvg, | ||
int | x, | ||
int | y, | ||
int | nWidth, | ||
int | nHeight | ||
) |
@绘制_SVG扩展
hDraw | 图形绘制句柄 |
hSvg | SVG句柄 |
x | x坐标 |
y | y坐标 |
nWidth | 宽度 |
nHeight | 高度 |
void WINAPI XDraw_DrawSvgSize | ( | HDRAW | hDraw, |
HSVG | hSvg, | ||
int | nWidth, | ||
int | nHeight | ||
) |
@绘制_SVG大小
hDraw | 图形绘制句柄 |
hSvg | SVG句柄 |
nWidth | 宽度 |
nHeight | 高度 |
void WINAPI XDraw_DrawSvgSrc | ( | HDRAW | hDraw, |
HSVG | hSvg | ||
) |
@绘制_SVG源
hDraw | 图形绘制句柄 |
hSvg | SVG句柄 |
void WINAPI XDraw_DrawText | ( | HDRAW | hDraw, |
const wchar_t * | pString, | ||
int | nCount, | ||
RECT * | pRect | ||
) |
@绘制_文本指定矩形
hDraw | 图形绘制句柄. |
pString | 字符串. |
nCount | 字符串长度.如果填-1自动取长度 |
pRect | 坐标. |
void WINAPI XDraw_DrawTextF | ( | HDRAW | hDraw, |
const wchar_t * | pString, | ||
int | nCount, | ||
RECTF * | pRect | ||
) |
@绘制_文本指定矩形F
hDraw | 图形绘制句柄. |
pString | 字符串. |
nCount | 字符串长度.如果填-1自动取长度 |
pRect | 坐标. |
void WINAPI XDraw_DrawTextUnderline | ( | HDRAW | hDraw, |
const wchar_t * | pString, | ||
int | nCount, | ||
RECT * | pRect, | ||
COLORREF | colorLine | ||
) |
绘制_文本下划线 参见MSDN.
hDraw | 图形绘制句柄. |
pString | 字符串. |
nCount | 字符串长度.如果填-1自动取长度 |
pRect | 坐标. |
colorLine | 下划线颜色. |
void WINAPI XDraw_DrawTextUnderlineF | ( | HDRAW | hDraw, |
const wchar_t * | pString, | ||
int | nCount, | ||
RECTF * | pRect, | ||
COLORREF | colorLine | ||
) |
@绘制_文本下划线F
hDraw | 图形绘制句柄. |
pString | 字符串. |
nCount | 字符串长度.如果填-1自动取长度 |
pRect | 坐标. |
colorLine | 下划线颜色. |
void WINAPI XDraw_EnableSmoothingMode | ( | HDRAW | hDraw, |
BOOL | bEnable | ||
) |
绘制_启用平滑模式 启用平滑模式.
hDraw | 图形绘制句柄. |
bEnable | 是否启用. |
void WINAPI XDraw_EnableWndTransparent | ( | HDRAW | hDraw, |
BOOL | bTransparent | ||
) |
@绘制_启用窗口透明判断 当启用之后,调用GDI+函数时, 如果参数alpha=255,将自动修改为254, 应对GDI+的bug, 否则透明通道异常
hDraw | 图形绘制句柄 |
bTransparent | 是否启用 |
void WINAPI XDraw_FillEllipse | ( | HDRAW | hDraw, |
RECT * | pRect | ||
) |
@绘制_填充椭圆
hDraw | 图形绘制句柄. |
pRect | 矩形区域 |
void WINAPI XDraw_FillEllipseF | ( | HDRAW | hDraw, |
RECTF * | pRect | ||
) |
@绘制_填充椭圆F
hDraw | 图形绘制句柄. |
pRect | 矩形区域 |
void WINAPI XDraw_FillPolygon | ( | HDRAW | hDraw, |
in_buffer_ POINT * | points, | ||
int | nCount | ||
) |
绘制_填充多边形 填充多边形.
hDraw | 图形绘制句柄. |
points | 顶点坐标数组. |
nCount | 顶点数量. |
void WINAPI XDraw_FillPolygonF | ( | HDRAW | hDraw, |
in_buffer_ POINTF * | points, | ||
int | nCount | ||
) |
@绘制_填充多边形F 填充多边形
hDraw | 图形绘制句柄. |
points | 顶点坐标数组. |
nCount | 顶点数量. |
void WINAPI XDraw_FillRect | ( | HDRAW | hDraw, |
RECT * | pRect | ||
) |
@绘制_填充矩形
hDraw | 图形绘制句柄. |
pRect | 矩形区域. |
void WINAPI XDraw_FillRectColor | ( | HDRAW | hDraw, |
RECT * | pRect, | ||
COLORREF | color | ||
) |
@绘制_填充矩形指定颜色
hDraw | 图形绘制句柄. |
pRect | 矩形区域. |
color | 颜色. |
void WINAPI XDraw_FillRectColorF | ( | HDRAW | hDraw, |
RECTF * | pRect, | ||
COLORREF | color | ||
) |
@绘制_填充矩形指定颜色F
hDraw | 图形绘制句柄. |
pRect | 矩形区域. |
color | 颜色. |
void WINAPI XDraw_FillRectF | ( | HDRAW | hDraw, |
RECTF * | pRect | ||
) |
@绘制_填充矩形F
hDraw | 图形绘制句柄 |
pRect | 矩形区域 |
void WINAPI XDraw_FillRoundRect | ( | HDRAW | hDraw, |
RECT * | pRect, | ||
int | width, | ||
int | height | ||
) |
@绘制_填充圆角矩形 填充圆角矩形
hDraw | 图形绘制句柄. |
pRect | 矩形坐标. |
width | 圆角宽度. |
height | 圆角高度. |
void WINAPI XDraw_FillRoundRectEx | ( | HDRAW | hDraw, |
RECT * | pRect, | ||
int | leftTop, | ||
int | rightTop, | ||
int | rightBottom, | ||
int | leftBottom | ||
) |
绘制_填充圆角矩形扩展 填充圆角矩形.
hDraw | 图形绘制句柄. |
pRect | 坐标. |
leftTop | 圆角大小. |
rightTop | 圆角大小. |
rightBottom | 圆角大小. |
leftBottom | 圆角大小. |
void WINAPI XDraw_FillRoundRectExF | ( | HDRAW | hDraw, |
RECTF * | pRect, | ||
float | leftTop, | ||
float | rightTop, | ||
float | rightBottom, | ||
float | leftBottom | ||
) |
@绘制_填充圆角矩形扩展F 填充圆角矩形
hDraw | 图形绘制句柄. |
pRect | 坐标. |
leftTop | 圆角大小. |
rightTop | 圆角大小. |
rightBottom | 圆角大小. |
leftBottom | 圆角大小. |
void WINAPI XDraw_FillRoundRectF | ( | HDRAW | hDraw, |
RECTF * | pRect, | ||
float | width, | ||
float | height | ||
) |
@绘制_填充圆角矩形F 填充圆角矩形
hDraw | 图形绘制句柄. |
pRect | 矩形坐标. |
width | 圆角宽度. |
height | 圆角高度. |
void WINAPI XDraw_FocusRect | ( | HDRAW | hDraw, |
RECT * | pRect | ||
) |
绘制_焦点矩形 绘制焦点矩形.
hDraw | 图形绘制句柄. |
pRect | 矩形坐标. |
void WINAPI XDraw_FocusRectF | ( | HDRAW | hDraw, |
RECTF * | pRect | ||
) |
@绘制_焦点矩形F 绘制焦点矩形
hDraw | 图形绘制句柄. |
pRect | 矩形坐标. |
BOOL WINAPI XDraw_GDI_AlphaBlend | ( | HDRAW | hDraw, |
int | nXOriginDest, | ||
int | nYOriginDest, | ||
int | nWidthDest, | ||
int | nHeightDest, | ||
HDC | hdcSrc, | ||
int | nXOriginSrc, | ||
int | nYOriginSrc, | ||
int | nWidthSrc, | ||
int | nHeightSrc, | ||
int | alpha | ||
) |
@绘制_GDI_带透明复制 AlphaBlend() 参见MSDN
hDraw | XX. |
nXOriginDest | XX. |
nYOriginDest | XX. |
nWidthDest | XX. |
nHeightDest | XX. |
hdcSrc | XX. |
nXOriginSrc | XX. |
nYOriginSrc | XX. |
nWidthSrc | XX. |
nHeightSrc | XX. |
alpha | XX. |
BOOL WINAPI XDraw_GDI_BitBlt | ( | HDRAW | hDrawDest, |
int | nXDest, | ||
int | nYDest, | ||
int | width, | ||
int | height, | ||
HDC | hdcSrc, | ||
int | nXSrc, | ||
int | nYSrc, | ||
DWORD | dwRop | ||
) |
@绘制_GDI_复制 BitBlt() 参见MSDN
hDrawDest | XX. |
nXDest | XX. |
nYDest | XX. |
width | XX. |
height | XX. |
hdcSrc | XX. |
nXSrc | XX. |
nYSrc | XX. |
dwRop | XX. |
BOOL WINAPI XDraw_GDI_BitBlt2 | ( | HDRAW | hDrawDest, |
int | nXDest, | ||
int | nYDest, | ||
int | width, | ||
int | height, | ||
HDRAW | hDrawSrc, | ||
int | nXSrc, | ||
int | nYSrc, | ||
DWORD | dwRop | ||
) |
@绘制_GDI_复制2 BitBlt() 参见MSDN
hDrawDest | XX. |
nXDest | XX. |
nYDest | XX. |
width | XX. |
height | XX. |
hDrawSrc | XX. |
nXSrc | XX. |
nYSrc | XX. |
dwRop | XX. |
HPEN WINAPI XDraw_GDI_CreatePen | ( | HDRAW | hDraw, |
int | fnPenStyle, | ||
int | width, | ||
COLORREF | crColor | ||
) |
@绘制_GDI_创建画笔 GDI创建一个逻辑笔,指定的样式,宽度和颜色,随后的笔可以选择到设备上下文,用于绘制线条和曲线
hDraw | 图形绘制句柄 |
fnPenStyle | 画笔样式, PS_SOLID:实线 PS_DASH:段线 PS_DOT:点线 PS_DASHDOT:段线_点线 PS_DASHDOTDOT:段线_点_点 PS_NULL:空 PS_INSIDEFRAME:实线_笔宽是向里扩展 |
width | 画笔宽度 |
crColor | 颜色 |
HRGN WINAPI XDraw_GDI_CreatePolygonRgn | ( | HDRAW | hDraw, |
out_buffer_ POINT * | pPt, | ||
int | cPoints, | ||
int | fnPolyFillMode | ||
) |
@绘制_GDI_创建多边形区域 GDI创建一个多边形区域
hDraw | 图形绘制句柄. |
pPt | POINT数组. |
cPoints | 数组大小. |
fnPolyFillMode | 多边形填充模式,指定用于确定在该地区的像素填充模式,这个参数可以是下列值之一. ALTERNATE Selects alternate mode (fills area between odd-numbered and even-numbered polygon sides on each scan line). WINDING Selects winding mode (fills any region with a nonzero winding value). |
HRGN WINAPI XDraw_GDI_CreateRectRgn | ( | HDRAW | hDraw, |
int | nLeftRect, | ||
int | nTopRect, | ||
int | nRightRect, | ||
int | nBottomRect | ||
) |
@绘制_GDI_创建矩形区域 GDI创建矩形区域
hDraw | 图形绘制句柄. |
nLeftRect | 左上角X坐标. |
nTopRect | 左上角Y坐标. |
nRightRect | 右下角X坐标. |
nBottomRect | 右下角Y坐标. |
HRGN WINAPI XDraw_GDI_CreateRoundRectRgn | ( | HDRAW | hDraw, |
int | nLeftRect, | ||
int | nTopRect, | ||
int | nRightRect, | ||
int | nBottomRect, | ||
int | nWidthEllipse, | ||
int | nHeightEllipse | ||
) |
@绘制_GDI_创建圆角矩形区域 GDI创建一个圆角的矩形区域
hDraw | 图形绘制句柄. |
nLeftRect | X-坐标的左上角. |
nTopRect | Y-坐标左上角坐标 |
nRightRect | X-坐标右下角 |
nBottomRect | Y-坐标右下角 |
nWidthEllipse | 椭圆的宽度. |
nHeightEllipse | 椭圆的高度. |
HBRUSH WINAPI XDraw_GDI_CreateSolidBrush | ( | HDRAW | hDraw, |
COLORREF | crColor | ||
) |
@绘制_GDI_创建实心画刷 GDI创建具有指定的纯色逻辑刷
hDraw | 图形绘制句柄. |
crColor | 画刷颜色. |
BOOL WINAPI XDraw_GDI_DrawIconEx | ( | HDRAW | hDraw, |
int | xLeft, | ||
int | yTop, | ||
HICON | hIcon, | ||
int | cxWidth, | ||
int | cyWidth, | ||
UINT | istepIfAniCur, | ||
HBRUSH | hbrFlickerFreeDraw, | ||
UINT | diFlags | ||
) |
@绘制_GDI_图标扩展 绘制图标,DrawIconEx()参见MSDN
hDraw | . |
xLeft | . |
yTop | . |
hIcon | . |
cxWidth | . |
cyWidth | . |
istepIfAniCur | . |
hbrFlickerFreeDraw | . |
diFlags | . |
BOOL WINAPI XDraw_GDI_Ellipse | ( | HDRAW | hDraw, |
RECT * | pRect | ||
) |
@绘制_GDI_椭圆
hDraw | 图形绘制句柄 |
pRect | 矩形区域 |
BOOL WINAPI XDraw_GDI_FillRgn | ( | HDRAW | hDraw, |
HRGN | hrgn, | ||
HBRUSH | hbr | ||
) |
@绘制_GID_填充区域 通过使用指定的画刷填充一个区域
hDraw | 图形绘制句柄. |
hrgn | 区域句柄. |
hbr | 画刷句柄. |
BOOL WINAPI XDraw_GDI_FrameRgn | ( | HDRAW | hDraw, |
HRGN | hrgn, | ||
HBRUSH | hbr, | ||
int | width, | ||
int | height | ||
) |
@绘制_GDI_边框区域 绘制边框,使用指定的画刷绘制指定的区域的边框
hDraw | 图形绘制句柄. |
hrgn | 区域句柄. |
hbr | 画刷句柄. |
width | 边框宽度,垂直边. |
height | 边框高度,水平边. |
BOOL WINAPI XDraw_GDI_LineTo | ( | HDRAW | hDraw, |
int | nXEnd, | ||
int | nYEnd | ||
) |
@绘制_GDI_线终点 函数绘制一条线从当前位置到,但不包括指定点
hDraw | 图形绘制句柄. |
nXEnd | X坐标,线结束点. |
nYEnd | Y坐标,线结束点. |
BOOL WINAPI XDraw_GDI_MoveToEx | ( | HDRAW | hDraw, |
int | X, | ||
int | Y, | ||
POINT * | pPoint | ||
) |
@绘制_GDI_移动到起点 更新当前位置到指定点,并返回以前的位置
hDraw | 图形绘制句柄. |
X | 坐标. |
Y | 坐标. |
pPoint | 接收以前的当前位置到一个POINT结构的指针,如果这个参数是NULL指针,没有返回原来的位置. |
BOOL WINAPI XDraw_GDI_Polyline | ( | HDRAW | hDraw, |
in_buffer_ POINT * | pArrayPt, | ||
int | arrayPtSize | ||
) |
@绘制_GDI_折线 Polyline() 参见MSDN
hDraw | 图形绘制句柄. |
pArrayPt | 参见MSDN. |
arrayPtSize | 参见MSDN. |
BOOL WINAPI XDraw_GDI_Rectangle | ( | HDRAW | hDraw, |
int | nLeftRect, | ||
int | nTopRect, | ||
int | nRightRect, | ||
int | nBottomRect | ||
) |
@绘制_GDI_矩形 绘制矩形,使用当前的画刷和画笔
hDraw | 图形绘制句柄. |
nLeftRect | 左上角X坐标. |
nTopRect | 左上角Y坐标. |
nRightRect | 右下角X坐标. |
nBottomRect | 右下角Y坐标. |
void WINAPI XDraw_GDI_RestoreGDIOBJ | ( | HDRAW | hDraw | ) |
@绘制_GDI_还原状态 还原状态,释放用户绑定的GDI对象,例如画刷,画笔
hDraw | 图形绘制句柄. |
int WINAPI XDraw_GDI_SelectClipRgn | ( | HDRAW | hDraw, |
HRGN | hRgn | ||
) |
@绘制_GDI_选择裁剪区域 选择一个区域作为当前裁剪区域,注意:该函数只对GDI有效
hDraw | 图形绘制句柄. |
hRgn | 区域句柄. |
int WINAPI XDraw_GDI_SetBkMode | ( | HDRAW | hDraw, |
BOOL | bTransparent | ||
) |
@绘制_GDI_置背景模式 SetBkMode() 参见MSDN
hDraw | 图形绘制句柄. |
bTransparent | 参见MSDN. |
COLORREF WINAPI XDraw_GDI_SetPixel | ( | HDRAW | hDraw, |
int | X, | ||
int | Y, | ||
COLORREF | crColor | ||
) |
@绘制_GDI_置像素颜色 函数设置在指定的坐标到指定的颜色的像素
hDraw | 图形绘制句柄. |
X | 坐标 |
Y | 坐标 |
crColor | 颜色值, 请使用宏: RGBA() |
vint WINAPI XDraw_GetD2dFactory | ( | HDRAW | hDraw | ) |
@绘制_取D2D工厂
hDraw | 图形绘制句柄 |
vint WINAPI XDraw_GetD2dRenderTarget | ( | HDRAW | hDraw | ) |
@绘制_取D2D渲染目标
hDraw | 图形绘制句柄 |
vint WINAPI XDraw_GetD2dWICFactory | ( | HDRAW | hDraw | ) |
@绘制_取D2DWIC工厂
hDraw | 图形绘制句柄 |
vint WINAPI XDraw_GetD2dWriteFactory | ( | HDRAW | hDraw | ) |
@绘制_取D2DWrite工厂
hDraw | 图形绘制句柄 |
HFONTX WINAPI XDraw_GetFont | ( | HDRAW | hDraw | ) |
@绘制_取字体
hDraw | 图形绘制句柄 |
HDC WINAPI XDraw_GetHDC | ( | HDRAW | hDraw | ) |
void WINAPI XDraw_GetOffset | ( | HDRAW | hDraw, |
__out int * | pX, | ||
__out int * | pY | ||
) |
绘制_取偏移 获取坐标偏移量,X向左偏移为负数,向右偏移为正数.
hDraw | 图形绘制句柄. |
pX | 接收X轴偏移量. |
pY | 接收Y轴偏移量. |
void WINAPI XDraw_GradientFill2 | ( | HDRAW | hDraw, |
RECT * | pRect, | ||
COLORREF | color1, | ||
COLORREF | color2, | ||
int | mode | ||
) |
绘制_渐变填充2 渐变填充,从一种颜色过渡到另一种颜色.
hDraw | 图形绘制句柄. |
pRect | 矩形坐标. |
color1 | 开始颜色. |
color2 | 结束颜色. |
mode | 模式. GRADIENT_FILL_RECT_H 水平填充 . GRADIENT_FILL_RECT_V 垂直填充. GRADIENT_FILL_TRIANGLE 三角形. |
void WINAPI XDraw_GradientFill2F | ( | HDRAW | hDraw, |
RECTF * | pRect, | ||
COLORREF | color1, | ||
COLORREF | color2, | ||
int | mode | ||
) |
@绘制_渐变填充2F 渐变填充,从一种颜色过渡到另一种颜色
hDraw | 图形绘制句柄. |
pRect | 矩形坐标. |
color1 | 开始颜色. |
color2 | 结束颜色. |
mode | 模式. GRADIENT_FILL_RECT_H 水平填充 . GRADIENT_FILL_RECT_V 垂直填充. GRADIENT_FILL_TRIANGLE 三角形. |
void WINAPI XDraw_GradientFill4 | ( | HDRAW | hDraw, |
RECT * | pRect, | ||
COLORREF | color1, | ||
COLORREF | color2, | ||
COLORREF | color3, | ||
COLORREF | color4, | ||
int | mode | ||
) |
绘制_渐变填充4 渐变填充,从一种颜色过渡到另一种颜色.
hDraw | 图形绘制句柄. |
pRect | 矩形坐标. |
color1 | 开始颜色. |
color2 | 结束颜色,中间. |
color3 | 开始颜色,中间. |
color4 | 结束颜色. |
mode | 模式. GRADIENT_FILL_RECT_H 水平填充. GRADIENT_FILL_RECT_V 垂直填充. GRADIENT_FILL_TRIANGLE 三角形. |
void WINAPI XDraw_GradientFill4F | ( | HDRAW | hDraw, |
RECTF * | pRect, | ||
COLORREF | color1, | ||
COLORREF | color2, | ||
COLORREF | color3, | ||
COLORREF | color4, | ||
int | mode | ||
) |
@绘制_渐变填充4F 渐变填充,从一种颜色过渡到另一种颜色
hDraw | 图形绘制句柄. |
pRect | 矩形坐标. |
color1 | 开始颜色. |
color2 | 结束颜色,中间. |
color3 | 开始颜色,中间. |
color4 | 结束颜色. |
mode | 模式. GRADIENT_FILL_RECT_H 水平填充. GRADIENT_FILL_RECT_V 垂直填充. GRADIENT_FILL_TRIANGLE 三角形. |
void WINAPI XDraw_Image | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
int | x, | ||
int | y | ||
) |
绘制_图片 绘制图片.
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
x | x坐标. |
y | y坐标. |
void WINAPI XDraw_ImageAdaptive | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
RECT * | pRect, | ||
BOOL | bOnlyBorder | ||
) |
绘制_图片自适应 绘制图片.
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
pRect | 坐标. |
bOnlyBorder | 是否只绘制边缘区域. |
void WINAPI XDraw_ImageAdaptiveF | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
RECTF * | pRect, | ||
BOOL | bOnlyBorder | ||
) |
@绘制_图片自适应F 绘制图片
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
pRect | 坐标. |
bOnlyBorder | 是否只绘制边缘区域. |
void WINAPI XDraw_ImageEx | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
int | x, | ||
int | y, | ||
int | width, | ||
int | height | ||
) |
@绘制_图片扩展 绘制图片
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
x | x坐标. |
y | y坐标. |
width | 宽度. |
height | 高度. |
void WINAPI XDraw_ImageExF | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
float | x, | ||
float | y, | ||
float | width, | ||
float | height | ||
) |
@绘制_图片扩展F 绘制图片
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
x | x坐标. |
y | y坐标. |
width | 宽度. |
height | 高度. |
void WINAPI XDraw_ImageF | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
float | x, | ||
float | y | ||
) |
@绘制_图片F 绘制图片
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
x | x坐标. |
y | y坐标. |
void WINAPI XDraw_ImageMask | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
HIMAGE | hImageFrameMask, | ||
RECT * | pRect, | ||
int | x, | ||
int | y | ||
) |
绘制_图片遮盖 绘制带遮盖的图片.D2D留空
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
hImageFrameMask | 图片句柄,遮盖. |
pRect | 坐标. |
x | 目标X坐标. |
y | 目标Y坐标. |
void WINAPI XDraw_ImageMaskEllipse | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
RECT * | pRect, | ||
RECT * | pRcMask | ||
) |
@绘制_图片遮盖圆型 使用圆形作为遮罩
hDraw | 图形绘制句柄 |
hImageFrame | 图片句柄 |
pRect | 矩形坐标 |
pRcMask | 遮罩坐标 |
void WINAPI XDraw_ImageMaskRect | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
RECT * | pRect, | ||
RECT * | pRcMask, | ||
RECT * | pRcRoundAngle | ||
) |
@绘制_图片遮盖矩形 使用矩形作为遮罩
hDraw | 图形绘制句柄 |
hImageFrame | 图片句柄 |
pRect | 矩形坐标 |
pRcMask | 遮罩坐标 |
pRcRoundAngle | 遮罩圆角 |
void WINAPI XDraw_ImageSuper | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
RECT * | pRect, | ||
BOOL | bClip | ||
) |
绘制_图片增强 绘制图片.
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
pRect | 坐标. |
bClip | 是否裁剪区域. |
void WINAPI XDraw_ImageSuperEx | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
RECT * | pRcDest, | ||
RECT * | pRcSrc | ||
) |
绘制_图片增强2 绘制图片.
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
pRcDest | 目标坐标. |
pRcSrc | 源坐标. |
void WINAPI XDraw_ImageSuperExF | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
RECTF * | pRcDest, | ||
RECTF * | pRcSrc | ||
) |
@绘制_图片增强扩展F 绘制图片
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
pRcDest | 目标坐标. |
pRcSrc | 源坐标. |
void WINAPI XDraw_ImageSuperF | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
RECTF * | pRect, | ||
BOOL | bClip | ||
) |
@绘制_图片增强F 绘制图片
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
pRect | 坐标. |
bClip | 是否裁剪区域. |
void WINAPI XDraw_ImageSuperMask | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
HIMAGE | hImageFrameMask, | ||
RECT * | pRect, | ||
RECT * | pRectMask, | ||
BOOL | bClip | ||
) |
绘制_图片增强遮盖 绘制带遮盖的图片. D2D留空
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
hImageFrameMask | 图片句柄,遮盖. |
pRect | 坐标. |
pRectMask | 坐标,遮盖. |
bClip | 是否裁剪区域. |
void WINAPI XDraw_ImageTile | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
RECT * | pRect, | ||
int | flag | ||
) |
绘制_图片平铺 绘制图片.
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
pRect | 坐标. |
flag | 标识, 0:从左上角开始平铺,1:从左下角开始平铺. |
void WINAPI XDraw_ImageTileF | ( | HDRAW | hDraw, |
HIMAGE | hImageFrame, | ||
RECTF * | pRect, | ||
int | flag | ||
) |
@绘制_图片平铺F 绘制图片
hDraw | 图形绘制句柄. |
hImageFrame | 图片句柄. |
pRect | 坐标. |
flag | 标识, 0:从左上角开始平铺,1:从左下角开始平铺. |
void WINAPI XDraw_SetBrushColor | ( | HDRAW | hDraw, |
COLORREF | color | ||
) |
绘制_置画刷颜色 设置画刷颜色.
hDraw | 图形绘制句柄. |
color | 颜色值, 请使用宏: RGBA() |
void WINAPI XDraw_SetClipRect | ( | HDRAW | hDraw, |
RECT * | pRect | ||
) |
绘制_置裁剪区域 设置裁剪区域.
hDraw | 图形绘制句柄. |
pRect | 区域坐标. |
void WINAPI XDraw_SetD2dTextRenderingMode | ( | HDRAW | hDraw, |
XC_DWRITE_RENDERING_MODE | mode | ||
) |
@绘制_置D2D文本渲染模式
hDraw | 图形绘制句柄 |
mode | 渲染模式 XC_DWRITE_RENDERING_MODE |
void WINAPI XDraw_SetFont | ( | HDRAW | hDraw, |
HFONTX | hFontx | ||
) |
绘制_置字体 设置字体.
hDraw | 图形绘制句柄. |
hFontx | 炫彩字体. |
void WINAPI XDraw_SetLineWidth | ( | HDRAW | hDraw, |
int | width | ||
) |
绘制_置线宽 设置线宽.
hDraw | 图形绘制句柄. |
width | 宽度. |
void WINAPI XDraw_SetLineWidthF | ( | HDRAW | hDraw, |
float | width | ||
) |
@绘制_置线宽F 设置线宽
hDraw | 图形绘制句柄. |
width | 宽度. |
void WINAPI XDraw_SetOffset | ( | HDRAW | hDraw, |
int | x, | ||
int | y | ||
) |
绘制_置偏移 设置坐标偏移量,X向左偏移为负数,向右偏移为正数.
hDraw | 图形绘制句柄. |
x | X轴偏移量. |
y | Y轴偏移量. |
void WINAPI XDraw_SetTextAlign | ( | HDRAW | hDraw, |
int | nFlags | ||
) |
绘制_置文本对齐 设置文本对齐.
hDraw | 图形绘制句柄. |
nFlags | 对齐标识 textFormatFlag_ . |
void WINAPI XDraw_SetTextRenderingHint | ( | HDRAW | hDraw, |
int | nType | ||
) |
@绘制_置文本炫彩质量 设置文本渲染质量GDI+
hDraw | 图形绘制句柄 |
nType | 参见GDI+ TextRenderingHint 定义. |
void WINAPI XDraw_SetTextVertical | ( | HDRAW | hDraw, |
BOOL | bVertical | ||
) |
绘制_置文本垂直 设置文本垂直显示.
hDraw | 图形绘制句柄. |
bVertical | 是否垂直显示文本. |
void WINAPI XDraw_TextOut | ( | HDRAW | hDraw, |
int | xStart, | ||
int | yStart, | ||
const wchar_t * | pString, | ||
int | cbString | ||
) |
@绘制_文本
hDraw | 图形绘制句柄. |
xStart | XX. |
yStart | XX. |
pString | XX. |
cbString | XX. 如果填-1自动取长度 |
void WINAPI XDraw_TextOutA | ( | HDRAW | hDraw, |
int | xStart, | ||
int | yStart, | ||
const char * | pString | ||
) |
@绘制_文本A
hDraw | 图形绘制句柄. |
xStart | XX. |
yStart | XX. |
pString | XX. |
void WINAPI XDraw_TextOutAF | ( | HDRAW | hDraw, |
float | xStart, | ||
float | yStart, | ||
const char * | pString | ||
) |
@绘制_文本AF
hDraw | 图形绘制句柄. |
xStart | XX. |
yStart | XX. |
pString | XX. |
void WINAPI XDraw_TextOutEx | ( | HDRAW | hDraw, |
int | xStart, | ||
int | yStart, | ||
const wchar_t * | pString | ||
) |
@绘制_文本扩展
hDraw | 图形绘制句柄. |
xStart | XX. |
yStart | XX. |
pString | XX. |
void WINAPI XDraw_TextOutExF | ( | HDRAW | hDraw, |
float | xStart, | ||
float | yStart, | ||
const wchar_t * | pString | ||
) |
@绘制_文本扩展F
hDraw | 图形绘制句柄. |
xStart | XX. |
yStart | XX. |
pString | XX. |
void WINAPI XDraw_TextOutF | ( | HDRAW | hDraw, |
float | xStart, | ||
float | yStart, | ||
const wchar_t * | pString, | ||
int | cbString | ||
) |
@绘制_文本F
hDraw | 图形绘制句柄. |
xStart | XX. |
yStart | XX. |
pString | XX. |
cbString | XX. |