Jump to content
Software FX Community

Size of plot area in pixels


User (Legacy)

Recommended Posts

Posted

I want to change only the background of the plot area of a line (x,y) chart.

I use the pre-paint event which gives me access to the height, width and

left/right/top/bottom gaps. However, subtracting these still wont give the

right area, I suspect one must also make an allowance for fonts. Does anyone

know how to exactly calculate the size of the plot area?

Thanks for your help.

Henk Borsje

Posted

The PrePaint event passes you the Width and Height of the chart area as

parameters (w and h). You can use LeftGap, TopGap, etc. to exclude the

margins. Do not use ChartControl.Width and ChartControl.Height as this

include borders, toolbar, legends and everything else.

--

FP

Software FX, Inc.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...