Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Create image from pixel values with Imager

by Anonymous Monk
on May 17, 2022 at 07:16 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (None)
    As of 2024-04-25 03:58 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found