[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Graphics' (#lcl)

TCanvas.Pen

The Pen to be used for writing in this canvas.

Declaration

Source position: graphics.pp line 1184

published property TCanvas.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:

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

TCanvas.Brush

  

The Brush used to paint on the Canvas.

TPen

  

Represents a pen used to draw on a canvas.


Version 3.2 Generated 2024-02-25 Home