I'm not sure what kind of image you have. The WWPlot object (generated for graphing functions) is described at
http://webhost.math.rochester.edu/webworkdocs/docs/pglanguage/pod/wwplot#methods_and_properties size
($horizontal_pixels, $vertical_pixels) = $graph ->size(); Reads the size of the graph image in pixels. This cannot be reset. It is defined by the new constructor and cannot be changed.
[ Later: Oops. I just looked at the code and $graph->size() returns a pointer to an array,
not an array, so the code above should be
($horizontal_pixels, $vertical_pixels) = @{$graph ->size()};
I'll get the documentation fixed. ]
WWPlot is build on the GD.pm module and our link seems to be broken at
the moment, but a quick google search shows documentation at http://supportweb.cs.bham.ac.uk/documentation/perl-modules/GD.html. I didn't see a size method there.
It will clarify matters if you tell us how the object $pic was created.
<| Post or View Comments |>
|