Release an allocated palette entry to the free pool.
Source position: agraphics.pas line 2192
procedure ReleasePen( |
Cm: PColorMap; |
n: LongWord |
); |
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. |
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.
|
Allocate and initialize Colormap |
|
|
Obtain a free palette entry for use by your program. |
|
|
Search for the closest color match, or allocate a new one. |