FMX.Graphics.TCanvas.SetCustomDash
Delphi
procedure SetCustomDash(const Dash: array of Single; Offset: Single);
C++
void __fastcall SetCustomDash(const float *Dash, const int Dash_High, float Offset);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | FMX.Graphics.pas FMX.Graphics.hpp |
FMX.Graphics | TCanvas |
Description
Customizes the outline style.
Use SetCustomDash to create a new line style to draw a shape on the current TCanvas.
The Dash
parameter is an array of values for the length of the elements and the free spaces between them. The array items' values alternate; if an item represents the length of an element, the next item represents the free space to the next element. The shape's contour is composed of a suite of sequences that match the rule specified by Dash
.
The Offset
parameter specifies how far in the dash sequence the stroke will start.
The predefined styles are defined by TStrokeDash.
A customized line is composed of elements with different lengths and spaces between elements.
If StrokeDash is not Solid
, StrokeCap affects the end of each element of the customized line.