Vcl.Graphics.TBrush.Bitmap

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Bitmap: TBitmap read GetBitmap write SetBitmap;

C++

__property TBitmap* Bitmap = {read=GetBitmap, write=SetBitmap};

Properties

Type Visibility Source Unit Parent
property public
Vcl.Graphics.pas
Vcl.Graphics.hpp
Vcl.Graphics TBrush

Description

Specifies an external bitmap image that defines a pattern for the brush.

Bitmap points to a TBitmap object that holds a bitmap image. If Bitmap is nonempty, the bitmap image (rather than the Style property) defines the brush's pattern. If the image is larger than eight pixels by eight pixels, only the top left eight-by-eight region is used.

Changing the image does not affect the brush until the TBitmap is reassigned to the Bitmap property. Be sure to free the TBitmap after finishing with the brush, since TBrush will not free it.

See Also

Code Examples