Unit 'agraphics' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

ReleasePen

Release an allocated palette entry to the free pool.

Declaration

Source position: agraphics.pas line 2370

procedure ReleasePen(

  cm: pColorMap;

  n: LongWord

);

Arguments

cm

  

ColorMap structure where the pen was allocated

n

  

A palette index obtained via any of the palette allocation functions. Passing a -1 will result in this call doing nothing.

Description

Return the palette entry for use by other applications. If the reference count for this palette entry goes to zero, then it may be set to another RGB value.

See also

GetColorMap

  

Allocate and initialize Colormap

ObtainPen

  

Obtain a free palette entry for use by your program.

ObtainBestPenA

  

Search for the closest color match, or allocate a new one.


Documentation generated on: 2021-07-30