📄 gdiplus_graphics.cpp
字号:
GpStatus WINGDIPAPI
GdipDrawRectanglesI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpRect *rects,
INT count)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawRectanglesI == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawRectanglesI);
}
if ( g_GdipDrawRectanglesI != NULL )
{
status = (*g_GdipDrawRectanglesI)(graphics, pen, rects, count);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawEllipsePtr)(GpGraphics *graphics, GpPen *pen, REAL x, REAL y,
REAL width, REAL height));
DEFINE_MEMBER(GdipDrawEllipse);
GpStatus WINGDIPAPI
GdipDrawEllipse(GpGraphics *graphics, GpPen *pen, REAL x, REAL y,
REAL width, REAL height)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawEllipse == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawEllipse);
}
if ( g_GdipDrawEllipse != NULL )
{
status = (*g_GdipDrawEllipse)(graphics, pen, x, y, width, height);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawEllipseIPtr)(GpGraphics *graphics, GpPen *pen, INT x, INT y,
INT width, INT height));
DEFINE_MEMBER(GdipDrawEllipseI);
GpStatus WINGDIPAPI
GdipDrawEllipseI(GpGraphics *graphics, GpPen *pen, INT x, INT y,
INT width, INT height)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawEllipseI == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawEllipseI);
}
if ( g_GdipDrawEllipseI != NULL )
{
status = (*g_GdipDrawEllipseI)(graphics, pen, x, y, width, height);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawPiePtr)(GpGraphics *graphics, GpPen *pen, REAL x, REAL y,
REAL width, REAL height, REAL startAngle,
REAL sweepAngle));
DEFINE_MEMBER(GdipDrawPie);
GpStatus WINGDIPAPI
GdipDrawPie(GpGraphics *graphics, GpPen *pen, REAL x, REAL y,
REAL width, REAL height, REAL startAngle,
REAL sweepAngle)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawPie == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawPie);
}
if ( g_GdipDrawPie != NULL )
{
status = (*g_GdipDrawPie)(graphics, pen, x, y, width, height, startAngle, sweepAngle);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawPieIPtr)(GpGraphics *graphics, GpPen *pen, INT x, INT y,
INT width, INT height, REAL startAngle, REAL sweepAngle));
DEFINE_MEMBER(GdipDrawPieI);
GpStatus WINGDIPAPI
GdipDrawPieI(GpGraphics *graphics, GpPen *pen, INT x, INT y,
INT width, INT height, REAL startAngle, REAL sweepAngle)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawPieI == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawPieI);
}
if ( g_GdipDrawPieI != NULL )
{
status = (*g_GdipDrawPieI)(graphics, pen, x, y, width, height, startAngle, sweepAngle);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawPolygonPtr)(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points,
INT count));
DEFINE_MEMBER(GdipDrawPolygon);
GpStatus WINGDIPAPI
GdipDrawPolygon(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points,
INT count)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawPolygon == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawPolygon);
}
if ( g_GdipDrawPolygon != NULL )
{
status = (*g_GdipDrawPolygon)(graphics, pen, points, count);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawPolygonIPtr)(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points,
INT count));
DEFINE_MEMBER(GdipDrawPolygonI);
GpStatus WINGDIPAPI
GdipDrawPolygonI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points,
INT count)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawPolygonI == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawPolygonI);
}
if ( g_GdipDrawPolygonI != NULL )
{
status = (*g_GdipDrawPolygonI)(graphics, pen, points, count);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawPathPtr)(GpGraphics *graphics, GpPen *pen, GpPath *path));
DEFINE_MEMBER(GdipDrawPath);
GpStatus WINGDIPAPI
GdipDrawPath(GpGraphics *graphics, GpPen *pen, GpPath *path)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawPath == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawPath);
}
if ( g_GdipDrawPath != NULL )
{
status = (*g_GdipDrawPath)(graphics, pen, path);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawCurvePtr)(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points,
INT count));
DEFINE_MEMBER(GdipDrawCurve);
GpStatus WINGDIPAPI
GdipDrawCurve(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points,
INT count)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawCurve == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawCurve);
}
if ( g_GdipDrawCurve != NULL )
{
status = (*g_GdipDrawCurve)(graphics, pen, points, count);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawCurveIPtr)(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points,
INT count));
DEFINE_MEMBER(GdipDrawCurveI);
GpStatus WINGDIPAPI
GdipDrawCurveI(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points,
INT count)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawCurveI == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawCurveI);
}
if ( g_GdipDrawCurveI != NULL )
{
status = (*g_GdipDrawCurveI)(graphics, pen, points, count);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawCurve2Ptr)(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points,
INT count, REAL tension));
DEFINE_MEMBER(GdipDrawCurve2);
GpStatus WINGDIPAPI
GdipDrawCurve2(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points,
INT count, REAL tension)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawCurve2 == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawCurve2);
}
if ( g_GdipDrawCurve2 != NULL )
{
status = (*g_GdipDrawCurve2)(graphics, pen, points, count, tension);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawCurve2IPtr)(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points,
INT count, REAL tension));
DEFINE_MEMBER(GdipDrawCurve2I);
GpStatus WINGDIPAPI
GdipDrawCurve2I(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points,
INT count, REAL tension)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawCurve2I == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawCurve2I);
}
if ( g_GdipDrawCurve2I != NULL )
{
status = (*g_GdipDrawCurve2I)(graphics, pen, points, count, tension);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawCurve3Ptr)(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points,
INT count, INT offset, INT numberOfSegments, REAL tension));
DEFINE_MEMBER(GdipDrawCurve3);
GpStatus WINGDIPAPI
GdipDrawCurve3(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPointF *points,
INT count, INT offset, INT numberOfSegments, REAL tension)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawCurve3 == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawCurve3);
}
if ( g_GdipDrawCurve3 != NULL )
{
status = (*g_GdipDrawCurve3)(graphics, pen, points, count, offset, numberOfSegments, tension);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawCurve3IPtr)(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points,
INT count, INT offset, INT numberOfSegments, REAL tension));
DEFINE_MEMBER(GdipDrawCurve3I);
GpStatus WINGDIPAPI
GdipDrawCurve3I(GpGraphics *graphics, GpPen *pen, GDIPCONST GpPoint *points,
INT count, INT offset, INT numberOfSegments, REAL tension)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawCurve3I == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawCurve3I);
}
if ( g_GdipDrawCurve3I != NULL )
{
status = (*g_GdipDrawCurve3I)(graphics, pen, points, count, offset, numberOfSegments, tension);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawClosedCurvePtr)(GpGraphics *graphics, GpPen *pen,
GDIPCONST GpPointF *points, INT count));
DEFINE_MEMBER(GdipDrawClosedCurve);
GpStatus WINGDIPAPI
GdipDrawClosedCurve(GpGraphics *graphics, GpPen *pen,
GDIPCONST GpPointF *points, INT count)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawClosedCurve == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawClosedCurve);
}
if ( g_GdipDrawClosedCurve != NULL )
{
status = (*g_GdipDrawClosedCurve)(graphics, pen, points, count);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawClosedCurveIPtr)(GpGraphics *graphics, GpPen *pen,
GDIPCONST GpPoint *points, INT count));
DEFINE_MEMBER(GdipDrawClosedCurveI);
GpStatus WINGDIPAPI
GdipDrawClosedCurveI(GpGraphics *graphics, GpPen *pen,
GDIPCONST GpPoint *points, INT count)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawClosedCurveI == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawClosedCurveI);
}
if ( g_GdipDrawClosedCurveI != NULL )
{
status = (*g_GdipDrawClosedCurveI)(graphics, pen, points, count);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawClosedCurve2Ptr)(GpGraphics *graphics, GpPen *pen,
GDIPCONST GpPointF *points, INT count, REAL tension));
DEFINE_MEMBER(GdipDrawClosedCurve2);
GpStatus WINGDIPAPI
GdipDrawClosedCurve2(GpGraphics *graphics, GpPen *pen,
GDIPCONST GpPointF *points, INT count, REAL tension)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawClosedCurve2 == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawClosedCurve2);
}
if ( g_GdipDrawClosedCurve2 != NULL )
{
status = (*g_GdipDrawClosedCurve2)(graphics, pen, points, count, tension);
}
}
return status;
}
DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipDrawClosedCurve2IPtr)(GpGraphics *graphics, GpPen *pen,
GDIPCONST GpPoint *points, INT count, REAL tension));
DEFINE_MEMBER(GdipDrawClosedCurve2I);
GpStatus WINGDIPAPI
GdipDrawClosedCurve2I(GpGraphics *graphics, GpPen *pen,
GDIPCONST GpPoint *points, INT count, REAL tension)
{
GpStatus status = GdiplusNotInitialized;
if ( g_hGdiplusModule != NULL )
{
if ( g_GdipDrawClosedCurve2I == NULL )
{
INITIALIZE_MEMBER(g_hGdiplusModule, GdipDrawClosedCurve2I);
}
if ( g_GdipDrawClosedCurve2I != NULL )
{
status = (*g_GdipDrawClosedCurve2I)(graphics, pen, points, count, tension);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -