DrawDashedLine

procedure DrawDashedLine(img: TImage32; const line: TArrayOfPointD; dashPattern: TArrayOfInteger; patternOffset: PDouble; lineWidth: double; color: TColor32; endStyle: TEndStyle; joinStyle: TJoinStyle = jsAuto); overload;

procedure DrawDashedLine(img: TImage32; const lines: TArrayOfArrayOfPointD; dashPattern: TArrayOfInteger; patternOffset: PDouble; lineWidth: double; color: TColor32; endStyle: TEndStyle; joinStyle: TJoinStyle = jsAuto); overload;

procedure DrawDashedLine(img: TImage32; const line: TArrayOfPointD; dashPattern: TArrayOfInteger; patternOffset: PDouble; lineWidth: double; renderer: TCustomRenderer; endStyle: TEndStyle; joinStyle: TJoinStyle = jsAuto); overload;

procedure DrawDashedLine(img: TImage32; const lines: TArrayOfArrayOfPointD; dashPattern: TArrayOfInteger; patternOffset: PDouble; lineWidth: double; renderer: TCustomRenderer; endStyle: TEndStyle; joinStyle: TJoinStyle = jsAuto); overload;


Example 1
  uses Image32, Image32_PNG, Image32_Vector, Image32_Draw;
  ...
  var
    img: TImage32;
    path: TArrayOfPointD;
    rec: TRect;
  begin
    img.SetSize(256,256);
    rec := img.Bounds;
    Windows.InflateRect(rec, -20, -20);
    path := RoundRect(rec, 30);
    DrawDashedLine(img, path,
      [20,15,10,15], nil, 7, clNavy32, esClosed);
    img.SaveToFile('dashedLine1.png');
    img.Free;
  end;
            

Example 2
  uses Image32, Image32_PNG, Image32_Vector, Image32_Draw;
  ...
  var
    img: TImage32;
    linGradRend: TLinearGradientRenderer;
    path: TArrayOfPointD;
    rec: TRect;
  begin
    img := TImage32.Create(256,256);
    rec := img.Bounds;
    Windows.InflateRect(rec, -20, -20);
    path := RoundRect(rec, 30);

    linGradRend := TLinearGradientRenderer.Create;
    linGradRend.SetParameters(PointD(20,30),
      PointD(230,220), clFuchsia32, clBlue32);
    linGradRend.InsertColorStop(0.1, clFuchsia32);
    linGradRend.InsertColorStop(0.2, clRed32);
    linGradRend.InsertColorStop(0.5, $FFFFDD00);
    linGradRend.InsertColorStop(0.6, clLime32);
    linGradRend.InsertColorStop(0.9, clAqua32);
    DrawDashedLine(img, path,
      [20,15,10,15], nil, 7, linGradRend, esClosed);
    linGradRend.Free;
    
    img1.SaveToFile('dashedLine2.png');
    img1.Free;
  end;