## Printer Device Driver

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

### GplPatternCreateBitmaps

Description

This function fills in an array of BMAPINFO structures with the PATSYM patterns. This function is designed to be used to fill in the DEVICESURFACE structure with patterns that match the resolution of the target device. GplPattern functions use the GenPLib Memory-Management package and require that a HMCB had been created with GplMemoryCreateInstance.

Format

    LONG APIENTRY GplPatternCreateBitmaps(

                                HMCB        hMcb,               // Memory instance handle

                                ULONG       ulXResolution,      // X device resolution

                                ULONG       ulYResolution,      // Y device resolution

                                ULONG       ulWidth,            // Desired pattern width

                                ULONG       ulHeight,           // Desired pattern height

                                PBMAPINFO   paBmapInfo,         // Array of pattern bitmaps (output)

                                LONG        lCount,             // Number of bitmaps to create

                                ULONG       ulFlip );           // Flip bitmaps horiz/vertically

Parameters

hMcb (HMCB) Handle to initialized memory control block.

ulXResolution (ULONG) Target device x resolution.

ulYResolution (ULONG) Target device y resolution.

ulWidth (ULONG) Size of bitmap X.

ulHeigh (ULONG) Size of bitmap Y.

paBmapInfo (PBMAPINFO) Pointer to an array of BMAPINFO.

lCount (LONG) Number of bitmap information structures.

ulFlip (ULONG) Bit vector. If GPLPAT_INVERT_BITS is set, the bitmaps are inverted.

Returns

TRUE Success
FALSE Failure