![]() |
|
Syntactic Confectionery Delight | |
PerlMonks |
Re^2: How to create and save an image from RGB valuesby kikuchiyo (Friar) |
on Dec 27, 2021 at 23:52 UTC ( #11139962=note: print w/replies, xml ) | Need Help?? |
How about the PPM format? It's as simple as e.g. "P6 640 480 255\n" followed by the raw RGB binary data. It can be transformed by ImageMagick to any desired format. Alternatively, see the write_to_scalar example in Image::PNG::Libpng.
In Section
Seekers of Perl Wisdom
|
|