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

ReleasePen

Release an allocated palette entry to the free pool.

Declaration

Source position: agraphics.pas line 2456

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