In short, from the Documentation linked by couet, the key method is TCanvas::SetCanvasSize();
with which you’ll get the size you want, independently of the canvas window size (see also the example here).
In short, from the Documentation linked by couet, the key method is TCanvas::SetCanvasSize();
with which you’ll get the size you want, independently of the canvas window size (see also the example here).