Vcl.Direct2D.TDirect2DCanvas.CreateBrush
Delphi
function CreateBrush(Color: TColor): ID2D1Brush; overload;
function CreateBrush(Bitmap: TBitmap): ID2D1Brush; overload;
function CreateBrush(Colors: array of TColor; StartPoint, EndPoint: TD2D1Point2F): ID2D1Brush; overload;
function CreateBrush(Colors: array of TColor; Center, Offset: TD2D1Point2F; RadiusX, RadiusY: Single): ID2D1Brush; overload;
C++
Winapi::D2d1::_di_ID2D1Brush __fastcall CreateBrush(System::Uitypes::TColor Color)/* overload */;
Winapi::D2d1::_di_ID2D1Brush __fastcall CreateBrush(Vcl::Graphics::TBitmap* Bitmap)/* overload */;
Winapi::D2d1::_di_ID2D1Brush __fastcall CreateBrush(System::Uitypes::TColor *Colors, const int Colors_High, const D2D_POINT_2F &StartPoint, const D2D_POINT_2F &EndPoint)/* overload */;
Winapi::D2d1::_di_ID2D1Brush __fastcall CreateBrush(System::Uitypes::TColor *Colors, const int Colors_High, const D2D_POINT_2F &Center, const D2D_POINT_2F &Offset, float RadiusX, float RadiusY)/* overload */;
Eigenschaften
Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
---|---|---|---|---|
function | public | Vcl.Direct2D.pas Vcl.Direct2D.hpp |
Vcl.Direct2D | TDirect2DCanvas |
Beschreibung
Erstellt ein Direct2D-Pinselobjekt.
Mit CreateBrush werden Direct2D-Pinselobjekte erstellt. CreateBrush erstellt keine VCL-TDirect2DBrush-Objekte.
Es gibt vier überladene Methoden CreateBrush. Jede überladene Version erstellt einen bestimmten Pinsel anhand von den Eingabeparametern:
- Einen Pinsel mit gleichmäßiger Füllung erstellen, indem eine angegebene Farbe verwendet wird.
- Einen Pinsel erstellen, indem ein Bitmap als Muster verwendet wird.
- Einen Pinsel mit gleichmäßiger Füllung und Farbverlauf erstellen, indem eine Start- und eine Endfarbe verwendet werden.
Wenn einen VCL-kompatiblen Direct2D-Pinsel erforderlich ist, erstellen Sie Instanzen der Klasse TDirect2DBrush.