Vcl.Direct2D.TDirect2DBrush.Bitmap
Delphi
property Bitmap: TBitmap read GetBitmap write SetBitmap;
C++
__property Vcl::Graphics::TBitmap* Bitmap = {read=GetBitmap, write=SetBitmap};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.Direct2D.pas Vcl.Direct2D.hpp |
Vcl.Direct2D | TDirect2DBrush |
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, because TDirect2DBrush will not free it.