/ help / lists / applications / search /
|molar.is > lists > imager-devel > 2003-05||/ threads / authors / dates / subjects /|
printing generated png imageFrom: Dan Muey (email@example.com)
Date: Fri 09 May 2003 - 16:48:53 GMT
I have a script that is generating an image.
Instead of writing it to a file I'd like to be able to have the script
Foe example :
If I just read a png file I can then print it like so :
use CGI qw/:standard/;
my $png_guts = read_file("./mysuper.png");
So how can I take a blank image : ( never opening or using an existing image file )
my $img = Imager->new(xsize=>400,ysize=>300,channels=>4,type=>'paletted',bits=>16);
...do what i need to get the image i want
How do I print it to the screen?
Thanks a bunch! This looks to be a very cool module that I'll end up using quite a bit!!