package drawtiming forwarded 307804 http://drawtiming.sourceforge.net thanks
On Thursday 05 May 2005 10:10, Rob Sims wrote: > An option to set the output image size instead of setting a scale > factor would be useful (a kind of "fit to page" functionality). This seems straightforward enough to implement. The width and height are already calculated from the scale; I guess it would just need to be done in reverse. i.e. current code for calculating width/height using scale: width = (int)(scale * (16 + labelWidth + 64 * d.maxlen)); height = (int)(scale * y); e.g. example code that could be used to get scale given, width or height: scale = width / (16 + labelWidth + 64 * d.maxlen); OR scale = height / y; -- Wesley J. Landaker <[EMAIL PROTECTED]> OpenPGP FP: 4135 2A3B 4726 ACC5 9094 0097 F0A9 8A4C 4CD6 E3D2
pgpOJUbhEjP1k.pgp
Description: PGP signature