Returns a bitmap containing the pattern specified.
function CreateBmpPattern(const n: integer; const ColorFg: integer; const ColorBg: integer): TBitmap;
TBitmap CreateBmpPattern(const int n, const int ColorFg, const int ColorBg);
|
Parameters |
Description |
|
const n: integer |
Indicates the type of pattern, as in the image above. |
|
const ColorFg: integer |
Color for the foreground pattern. |
|
const ColorBg: integer |
Color for the background pattern. |
You will normally not need to use this method. It is used internally by FlexCelGrid to display bitmap patterns in cells.
This method creates a 4x4 or 8x4 bitmap with the pattern number specified by n, using ColorFg as the foreground color and ColorBg as the background color for the pattern.
You can use the returned bitmap as bitmap for a TCanvas.Brush
It is your responsibility to free the created bitmap when it is not more in use.
Possible n values:
n=1 means no background.
|
Copyright (c) 2002-2008 TMS Software. All rights reserved.
|
|
What do you think about this topic? Send feedback!
|