RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
Graphics.AllocPatternBitmap Function

Creates a TBitmap filled with a pattern.

Pascal
function AllocPatternBitmap(BkColor: TColor; FgColor: TColor): TBitmap;
C++
TBitmap AllocPatternBitmap(TColor BkColor, TColor FgColor);

Graphics

AllocPatternBitmap returns a reference to an 8 by 8 pixel TBitmap that is filled with a pattern. Pixels alternate between BkColor and FgColor colors horizontally and vertically in a quilt pattern. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!