Sign in Join
FPDoc Onlineexperiment

TCanvas.Pen property

Member of TCanvaspublishedIn unit Graphics

The Pen to be used for writing in this canvas.

Declaration

pascal
property Pen: TPen read FLazPen write SetLazPen;

Description

Pen is a TPen property which contains settings used when drawing lines, shapes, gradients, or generally changing pixels on the canvas. The available properties include:

  • Color
  • Mode
  • Style
  • Width
  • Cosmetic
  • EndCap
  • JoinStyle

See TPen for more information about properties, methods, and events in the class. See TFPCustomCanvas for information about the pen used in the FCL ancestor class.

The Pen property is used in the implementation of TCanvas drawing methods, like: SetPixel, MoveTo, LineTo, Arc, ArcTo, Chord, GradientFill, RadialPie, PolyBezier, Polygon, Polyline, Ellipse, Frame, Frame3D, Rectangle, and RoundRect.

Use Brush to access settings used to fill enclosed areas on the drawing surface.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.