TCanvasChord (Delphi)
Description
This code draws a chord on the top of an ellipse bounded by the current window.
Code
procedure TForm1.Button1Click(Sender: TObject);
var
R: TRect;
begin
R := GetClientRect; { Get the coordinates of the current window. }
Canvas.Chord(R.Left, R.Top, R.Right, R.Bottom, R.Right, R.Top, R.Left, R.Top);
end;
Uses
- Vcl.Graphics.TCanvas.Chord ( fr | de | ja )