Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Create image from pixel values with Imager

by Anonymous Monk
on May 17, 2022 at 07:16 UTC ( #11143932=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open my $fh, '>', 'data';
    binmode $fh;
    ...
    close $fh;
    
    `convert -depth 8 -size 256x256+0 gray:data data.png`;
    
  2. or download this
    my $img = Imager->new(
        type  => 'raw',
    ...
        model => 'gray'
    );
    $img->write(file=>'data.png');
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://11143932]
Approved by Discipulus
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2023-03-22 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?