Jump to content

GpiSetColor

From EDM2
Revision as of 19:51, 7 April 2025 by Iturbide (talk | contribs)

Sets the color for all subsequently drawn graphics primitives.

Syntax

GpiSetColor(hps, lColor)

Parameters

Returns

Errors

Remarks

Example Code

#define INCL_GPIPRIMITIVES /* Or use INCL_GPI, INCL_PM, Also in COMMON section */
#include <os2.h>

HPS     hps;     /*  Presentation-space handle. */
LONG    lColor;  /*  Color. */
BOOL    rc;      /*  Success indicator. */

rc = GpiSetColor(hps, lColor);



Related Functions

Graphic Elements and Orders