Vcl.Graphics.AllocPatternBitmap

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function AllocPatternBitmap(BkColor, FgColor: TColor): TBitmap;

C++

extern DELPHI_PACKAGE TBitmap* __fastcall AllocPatternBitmap(System::Uitypes::TColor BkColor, System::Uitypes::TColor FgColor);

Properties

Type Visibility Source Unit Parent
function public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics Vcl.Graphics

Description

Creates a TBitmap filled with a pattern.

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.

See Also