blazar has asked for the wisdom of the Perl Monks concerning the following question:
The task is to generate a bitmap image taking into account the following "requirements":
- The optimal target could be png, as it would be nice (but not strictly necessary) to have control over the bit depth per pixel, and of course the module should allow access to such fine tunings.
- I'm more interested in ease of use in terms of UI and amount of code to write than, say, efficiency or speed.
As for the first point, since this is a job to be done just once or at most a few times, I would consider it acceptable to have output to some other format and do any required conversions with external tools.
As for the second point, I wanted to point this out because often people who ask this kind of questions have to generate images on the fly to serve from a webserver aut similia, which is not my case.
To explain myself with an example (close enough to my real needs), suppose I have a loop that at every iteration gives me an array of integers. Then I want to output a line of graphics with a black pixel, for every such integer, precisely at an offset of that many pixel from the left border (and all others white).