⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gdiplus_graphics.cpp

📁 Windows Mobile平台上使用GDI+。GDI+功能很强大
💻 CPP
📖 第 1 页 / 共 5 页
字号:
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipGraphicsClearPtr)(GpGraphics *graphics, ARGB color));
DEFINE_MEMBER(GdipGraphicsClear);

GpStatus WINGDIPAPI
GdipGraphicsClear(GpGraphics *graphics, ARGB color)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipGraphicsClear == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipGraphicsClear);
        }
        if ( g_GdipGraphicsClear != NULL )
        {
            status = (*g_GdipGraphicsClear)(graphics, color);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillRectanglePtr)(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y,
                                 REAL width, REAL height));
DEFINE_MEMBER(GdipFillRectangle);

GpStatus WINGDIPAPI
GdipFillRectangle(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y,
                  REAL width, REAL height)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillRectangle == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillRectangle);
        }
        if ( g_GdipFillRectangle != NULL )
        {
            status = (*g_GdipFillRectangle)(graphics, brush, x, y, width, height);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillRectangleIPtr)(GpGraphics *graphics, GpBrush *brush, INT x, INT y,
                                  INT width, INT height));
DEFINE_MEMBER(GdipFillRectangleI);

GpStatus WINGDIPAPI
GdipFillRectangleI(GpGraphics *graphics, GpBrush *brush, INT x, INT y,
                   INT width, INT height)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillRectangleI == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillRectangleI);
        }
        if ( g_GdipFillRectangleI != NULL )
        {
            status = (*g_GdipFillRectangleI)(graphics, brush, x, y, width, height);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillRectanglesPtr)(GpGraphics *graphics, GpBrush *brush,
                                  GDIPCONST GpRectF *rects, INT count));
DEFINE_MEMBER(GdipFillRectangles);

GpStatus WINGDIPAPI
GdipFillRectangles(GpGraphics *graphics, GpBrush *brush,
                   GDIPCONST GpRectF *rects, INT count)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillRectangles == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillRectangles);
        }
        if ( g_GdipFillRectangles != NULL )
        {
            status = (*g_GdipFillRectangles)(graphics, brush, rects, count);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillRectanglesIPtr)(GpGraphics *graphics, GpBrush *brush,
                                   GDIPCONST GpRect *rects, INT count));
DEFINE_MEMBER(GdipFillRectanglesI);

GpStatus WINGDIPAPI
GdipFillRectanglesI(GpGraphics *graphics, GpBrush *brush,
                    GDIPCONST GpRect *rects, INT count)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillRectanglesI == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillRectanglesI);
        }
        if ( g_GdipFillRectanglesI != NULL )
        {
            status = (*g_GdipFillRectanglesI)(graphics, brush, rects, count);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillPolygonPtr)(GpGraphics *graphics, GpBrush *brush,
                               GDIPCONST GpPointF *points, INT count, GpFillMode fillMode));
DEFINE_MEMBER(GdipFillPolygon);

GpStatus WINGDIPAPI
GdipFillPolygon(GpGraphics *graphics, GpBrush *brush,
                GDIPCONST GpPointF *points, INT count, GpFillMode fillMode)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillPolygon == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillPolygon);
        }
        if ( g_GdipFillPolygon != NULL )
        {
            status = (*g_GdipFillPolygon)(graphics, brush, points, count, fillMode);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillPolygonIPtr)(GpGraphics *graphics, GpBrush *brush,
                                GDIPCONST GpPoint *points, INT count, GpFillMode fillMode));
DEFINE_MEMBER(GdipFillPolygonI);

GpStatus WINGDIPAPI
GdipFillPolygonI(GpGraphics *graphics, GpBrush *brush,
                 GDIPCONST GpPoint *points, INT count, GpFillMode fillMode)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillPolygonI == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillPolygonI);
        }
        if ( g_GdipFillPolygonI != NULL )
        {
            status = (*g_GdipFillPolygonI)(graphics, brush, points, count, fillMode);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillPolygon2Ptr)(GpGraphics *graphics, GpBrush *brush,
                                GDIPCONST GpPointF *points, INT count));
DEFINE_MEMBER(GdipFillPolygon2);

GpStatus WINGDIPAPI
GdipFillPolygon2(GpGraphics *graphics, GpBrush *brush,
                 GDIPCONST GpPointF *points, INT count)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillPolygon2 == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillPolygon2);
        }
        if ( g_GdipFillPolygon2 != NULL )
        {
            status = (*g_GdipFillPolygon2)(graphics, brush, points, count);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillPolygon2IPtr)(GpGraphics *graphics, GpBrush *brush,
                                 GDIPCONST GpPoint *points, INT count));
DEFINE_MEMBER(GdipFillPolygon2I);

GpStatus WINGDIPAPI
GdipFillPolygon2I(GpGraphics *graphics, GpBrush *brush,
                  GDIPCONST GpPoint *points, INT count)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillPolygon2I == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillPolygon2I);
        }
        if ( g_GdipFillPolygon2I != NULL )
        {
            status = (*g_GdipFillPolygon2I)(graphics, brush, points, count);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillEllipsePtr)(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y,
                               REAL width, REAL height));
DEFINE_MEMBER(GdipFillEllipse);

GpStatus WINGDIPAPI
GdipFillEllipse(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y,
                REAL width, REAL height)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillEllipse == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillEllipse);
        }
        if ( g_GdipFillEllipse != NULL )
        {
            status = (*g_GdipFillEllipse)(graphics, brush, x, y, width, height);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillEllipseIPtr)(GpGraphics *graphics, GpBrush *brush, INT x, INT y,
                                INT width, INT height));
DEFINE_MEMBER(GdipFillEllipseI);

GpStatus WINGDIPAPI
GdipFillEllipseI(GpGraphics *graphics, GpBrush *brush, INT x, INT y,
                 INT width, INT height)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillEllipseI == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillEllipseI);
        }
        if ( g_GdipFillEllipseI != NULL )
        {
            status = (*g_GdipFillEllipseI)(graphics, brush, x, y, width, height);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillPiePtr)(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y,
                           REAL width, REAL height, REAL startAngle, REAL sweepAngle));
DEFINE_MEMBER(GdipFillPie);

GpStatus WINGDIPAPI
GdipFillPie(GpGraphics *graphics, GpBrush *brush, REAL x, REAL y,
            REAL width, REAL height, REAL startAngle, REAL sweepAngle)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillPie == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillPie);
        }
        if ( g_GdipFillPie != NULL )
        {
            status = (*g_GdipFillPie)(graphics, brush, x, y, width, height, startAngle, sweepAngle);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillPieIPtr)(GpGraphics *graphics, GpBrush *brush, INT x, INT y,
                            INT width, INT height, REAL startAngle, REAL sweepAngle));
DEFINE_MEMBER(GdipFillPieI);

GpStatus WINGDIPAPI
GdipFillPieI(GpGraphics *graphics, GpBrush *brush, INT x, INT y,
             INT width, INT height, REAL startAngle, REAL sweepAngle)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillPieI == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillPieI);
        }
        if ( g_GdipFillPieI != NULL )
        {
            status = (*g_GdipFillPieI)(graphics, brush, x, y, width, height, startAngle, sweepAngle);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillPathPtr)(GpGraphics *graphics, GpBrush *brush, GpPath *path));
DEFINE_MEMBER(GdipFillPath);

GpStatus WINGDIPAPI
GdipFillPath(GpGraphics *graphics, GpBrush *brush, GpPath *path)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillPath == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillPath);
        }
        if ( g_GdipFillPath != NULL )
        {
            status = (*g_GdipFillPath)(graphics, brush, path);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillClosedCurvePtr)(GpGraphics *graphics, GpBrush *brush,
                                             GDIPCONST GpPointF *points, INT count));
DEFINE_MEMBER(GdipFillClosedCurve);

GpStatus WINGDIPAPI
GdipFillClosedCurve(GpGraphics *graphics, GpBrush *brush,
                              GDIPCONST GpPointF *points, INT count)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillClosedCurve == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillClosedCurve);
        }
        if ( g_GdipFillClosedCurve != NULL )
        {
            status = (*g_GdipFillClosedCurve)(graphics, brush, points, count);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillClosedCurveIPtr)(GpGraphics *graphics, GpBrush *brush,
                                             GDIPCONST GpPoint *points, INT count));
DEFINE_MEMBER(GdipFillClosedCurveI);

GpStatus WINGDIPAPI
GdipFillClosedCurveI(GpGraphics *graphics, GpBrush *brush, GDIPCONST GpPoint *points, INT count)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillClosedCurveI == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillClosedCurveI);
        }
        if ( g_GdipFillClosedCurveI != NULL )
        {
            status = (*g_GdipFillClosedCurveI)(graphics, brush, points, count);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillClosedCurve2Ptr)(GpGraphics *graphics, GpBrush *brush,
                                     GDIPCONST GpPointF *points, INT count,
                                     REAL tension, GpFillMode fillMode));
DEFINE_MEMBER(GdipFillClosedCurve2);

GpStatus WINGDIPAPI
GdipFillClosedCurve2(GpGraphics *graphics, GpBrush *brush,
                              GDIPCONST GpPointF *points, INT count,
                              REAL tension, GpFillMode fillMode)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_GdipFillClosedCurve2 == NULL )
        {
            INITIALIZE_MEMBER(g_hGdiplusModule, GdipFillClosedCurve2);
        }
        if ( g_GdipFillClosedCurve2 != NULL )
        {
            status = (*g_GdipFillClosedCurve2)(graphics, brush, points, count, tension, fillMode);
        }
    }
    return status;
}


DEFINE_POINTER(GpStatus (WINGDIPAPI *GdipFillClosedCurve2IPtr)(GpGraphics *graphics, GpBrush *brush,
                                             GDIPCONST GpPoint *points, INT count,
                                             REAL tension, GpFillMode fillMode));
DEFINE_MEMBER(GdipFillClosedCurve2I);

GpStatus WINGDIPAPI
GdipFillClosedCurve2I(GpGraphics *graphics, GpBrush *brush,
                              GDIPCONST GpPoint *points, INT count,
                              REAL tension, GpFillMode fillMode)
{
    GpStatus status = GdiplusNotInitialized;
    if ( g_hGdiplusModule != NULL )
    {
        if ( g_Gd

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -