|Welcome to the Monastery|
Re: Formatting output for multi-page printby bart (Canon)
|on Mar 30, 2003 at 02:49 UTC||Need Help??|
Intro: The following post might not make many sense to the innocent bypasser. It is the conclusion of a lengthy discussion on approaches with Limbic~Region on the ChatterBox, and it describes in a code example how I would attack this. Instead of printing to the screen, or a page, I'd build a bitmap graphic out of it, save it to a file, and look at it / postprocess using graphic viewer programs. Anyway, Limbic~Region seems to be very happy with the result, as it is completely different from what he used to do, 10 or so years ago.
OK, I think I've got something... I think this function will properly calculate Euclidian coordinates for each number you feed it. At least, it calculates the correct coordinates for the first 16 values, and it completely covers the test area, with no holes: if I make each calculated point black for my whole integer range, I get a completely black area, with no spots.
Update: Well, it should produce Euclidian coordinates now. My y's were upside down. Habit from work... :-)
Now, my idea was to combine this with GD, so you can place a pixel for each number you want marked. For example, this will mark all numbers divisible by 16. It is largely an adaption of the synopsis for GD.
You need, of course, to combine this with the above sub.
If eventually you still need to cut it up to print, you could use one of the graphics modules to split this image up into subimages.
Update: added introduction