dimensions (width and height) of the viewport image, in
<A HREF=#points>points</A>,
in the original graph drawing.
- The optional Z is the zoom factor. By default, Z is 1.
+ The optional Z is the zoom factor, i.e., the resulting image will be
+ Z*W by Z*H points in size. By default, Z is 1.
The optional pair (x,y) give the position in the graph, in
<A HREF=#points>points</A>, of the center
of the viewport. To focus on a particular node, (x,y) can be set to the
pointf centering = {0.0, 0.0}; /* centering offset - points */
/* unpaginated image size - in points - in graph orientation */
- imageSize = job->view;
+ imageSize.x = job->zoom*job->view.x;
+ imageSize.y = job->zoom*job->view.y;
/* rotate imageSize to page orientation */
if (job->rotation)
/* job->view gives port size in graph units, unscaled or rotated
* job->focus gives center of port in graph units
- * job->zoom gives scaling factor for viewpor
+ * job->zoom gives scaling factor for viewport in device; that is,
+ * final image will be (view.x*zoom, view.y*zoom) (possibly
+ * rotated).
*/
job->view.x = X;
job->view.y = Y;