Hide Comments
Hide Comments

TRSChartGraphic.Draw(TCanvas,TCanvasRect,TRSChartAxis,TRSChartAxis) Method

Comments (0)

Paints the chart graphic to the specified Canvas in the specified location. It uses the current canvas' brush and pen. Use the Draw method to paint the chart graphic to any canvas and anywhere and with any size on the canvas.

The VertAxis and HorizAxis parameters can be used to provide point to pixel conversions (see FMX.RS.ChartPanel.TRSChartAxis ).

alert_noteNotes to Inheritors

Descendant classes of TRSChartGraphic override the InternalDraw method to actually paint themselves.

Namespace: FMX.RS.ChartPanel

expandingSyntax

Delphi

public
  procedure Draw( const Canvas: TCanvas; ARect: TCanvasRect; VertAxis, HorizAxis: TRSChartAxis ); overload; virtual;
 

Parameters

Canvas

Type: TCanvas

Canvas to draw on

ARect

Type: TCanvasRect

Rectangle in canvas to draw itself

VertAxis

Type: TRSChartAxis

HorizAxis

Type: TRSChartAxis

expandingRemarks

The Draw method first calls the  OnDrawing event, which signals that it is about to draw and allows users to stop the drawing before it occurs. Then, it calls the protected  InternalDraw method to actually do the drawing. Finally, it calls the OnDraw event to signal the end of drawing of the chart graphic.

expandingSee Also

Comments (0)

RiverSoftAVG Charting Component Suite (RCCS) © 2005-2015, Thomas G. Grubb