You are reading help file online using chmlib.com
|
Rave Reports Developer Reference TBaseReport. CreateBrush method |
Top Previous Next |
Declaration function CreateBrush(NewColor: TColor; NewStyle: TBrushStyle; NewBitmap: TBitmap): TBrush;
Category
Description This method will create a TBrush object for the given parameters. If a bitmap is not desired, pass in the value of nil. You can assign this brush to the canvas to change the current brush.
NOTE: The brush object returned must be released by calling the free method of TBrush.
See also TBaseReport Class, SetBrush, TBrush, TBrushStyle, TColor
Example (Delphi) var MyBrush: TBrush; begin MyBrush := CreateBrush(clRed, bsSolid, nil); end;
Example (C++Builder) TBrush* MyBrush; MyBrush = rp1->CreateBrush(clRed, bsSolid, NULL); MyBrush->Free(); |
You are reading help file online using chmlib.com
|