|
From: Harald H. <h.h...@tu...> - 2005-11-11 00:16:57
|
On Thu, 10 Nov 2005, Ethan Merritt wrote: > In the general case, don't we need to know all four > corners of the canvas? So far as I understand the > code in the postscript driver, it uses both > "set size ..." and "set offset ..." to generate the > true canvas. For instance: You are right. I have never used that function and I did not know that it even works. > Don't we really want these same values, or at least their > unscaled equivalents, available to the core code? > E.g.: > > term->canvas.xleft = xmin_t * PS_SC; > term->canvas.xright = xmax_t * PS_SC; > term->canvas.ybot = ymin_t * PS_SC; > term->canvas.ytop = ymax_t * PS_SC; > > (give or take a factor of 2). Yes, you are right. And we should use the canvas struct as you showed in your example. xleft and ybot default to zero, and xright and ytop default to xmax and ymax, respectively. But do you agree that this method is the right one, in general? Best regards Harald, who really has to go to bed now. -- Harald Harders h.h...@tu... http://www.harald-harders.de |