[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Ensures that a Pattern Bitmap with the specified colors exists in the Pattern cache.
Source position: graphics.pp line 2014
function AllocPatternBitmap( |
colorBG: TColor; |
colorFG: TColor |
):TBitmap; |
colorBG |
|
Background color for the Bitmap. |
colorFG |
|
Foreground color for the Bitmap. |
Bitmap retrieved or created with the specified colors.
AllocPatternBitmap is a TBitmap function used to ensure that a bitmap with the specified colors exists in the internal pattern cache.
AllocPatternBitmap tries to locate a TPatternBitmap instance with the colors specified in colorBG and colorFG. If the requested Pattern Bitmap does not already exist, it is created and added to the pattern cache.
The return value is the TBitmap instance stored in the Bitmap property for the cached TPatternBitmap instance. No actions are performed if the Pattern cache has not been assigned; the return value is Nil in this situation.
|
Implements a FCL-compatible reader/writer for a Bitmap image. |
Version 3.2 | Generated 2024-02-25 | Home |