Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 wandering the Monastery: (3)
As of 2022-11-30 09:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?