I would like some piece of advice about which graphics module (out of the so many ones available from CPAN) to use for a certain task.
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).
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.