Determine the width and height of a raster grob when one or both are not given explicitly.
The result depends on both the aspect ratio of the raster image and the aspect ratio of the physical drawing context, so the result is only valid for the drawing context in which this function is called.
A raster grob
A raster grob can be specified with width and/or height of
NULL, which means that the size at which the raster is
drawn will be decided at drawing time.
A raster grob, with explicit width and height.
1 2 3 4 5 6 7 8 9 10 11