Jump to content

GpiSetColor: Difference between revisions

From EDM2
Ak120 (talk | contribs)
Created page with "Sets the color for all subsequently drawn graphics primitives. Category:Gpi"
 
No edit summary
Line 1: Line 1:
Sets the color for all subsequently drawn graphics primitives.
Sets the color for all subsequently drawn graphics primitives.
==Syntax==
GpiSetColor(hps, lColor)
==Parameters==
==Returns==
==Errors==
==Remarks==
==Example Code==
<pre>
#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);
</pre>
<pre>
</pre>
==Related Functions==
==Graphic Elements and Orders==
[[Category:WorkToDo]]


[[Category:Gpi]]
[[Category:Gpi]]

Revision as of 19:51, 7 April 2025

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