## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### GreConvertWithMatrix - Syntax

Simulation support:

This function is simulated by a handling routine in the graphics engine.

Description

GreConvertWithMatrix converts a series of points by using the indicated matrix. Other current transform matrixes are ignored.

This function can be hooked by the presentation driver.

    #define INCL_GRE_XFORMS

    #include <os2.h>

    HDC        hdc;         /*  Device context handle. */

    PPOINTL    paptlPoint;

    LONG       cPoints;     /*  Count of coordinate pairs in the array. */

    PXFORM     paXform;

    PVOID      pInstance;   /*  Pointer to instance data. */

    ULONG      lFunction;   /*  High-order WORD=flags; low-order WORD=NGreConvertWithMatrix. */

    BOOL       fSuccess;    /*  This function returns BOOLEAN (fSuccess). */

    fSuccess = GreConvertWithMatrix(hdc, paptlPoint,

                 cPoints, paXform, pInstance,

                 lFunction);