## Printer Device Driver

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

### GplPatternCreate

Description

This function can be used by a presentation driver to create a bitmap representation of any one of the predefined OS/2 patterns. Typically, it is called to create all or a subset of patterns a device driver will support at the start of a print job.

Format

    LONG APIENTRY GplPatternCreate( HMCB       hMcb,                 // Memory instance handle

                                    ULONG      ulXResolution,        // X device resolution

                                    ULONG      ulYResolution,        // Y device resolution

                                    ULONG      ulPatSym,             // OS/2 pattern define

                                    PBMAPINFO  pBmapInfo );          // A pattern bitmap (output)

Parameters

hMcb (HMCB) Handle to initialized Memory control block.

ulXResolution (ULONG) Target device x resolution.

ulYResolution (ULONG) Target device y resolution.

ulPatSym (ULONG) Pattern number as defined for OS/2 in PMDDI.H:

       PATSYM_DEFAULT
       PATSYM_DENSE1
       PATSYM_DENSE2
       PATSYM_DENSE3
       PATSYM_DENSE4
       PATSYM_DENSE5
       PATSYM_DENSE6
       PATSYM_DENSE7
       PATSYM_DENSE8
       PATSYM_VERT
       PATSYM_HORIZ
       PATSYM_DIAG1
       PATSYM_DIAG2
       PATSYM_DIAG3
       PATSYM_DIAG4
       PATSYM_NOSHADE
       PATSYM_SOLID
       PATSYM_BLANK
       PATSYM_HALFTONE
       PATSYM_HATCH
       PATSYM_DIAGHATCH

pBmapInfo (PBMAPINFO) Number of bitmap information structures.

Returns

TRUE Success
FALSE Failure