Release an allocated palette entry to the free pool.
Source position: agraphics.pas line 2370
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. |