HTTP-404 has asked for the wisdom of the Perl Monks concerning the following question:
and GD:use Image::Magick; #$image->Quantize(colorspace=>'gray'); $image = Image::Magick->new; $image->Set(size=>'100x100'); $image->ReadImage('xc:white'); $image->Set('pixel[49,49]'=>'red'); $text = 'Dude'; $image->Annotate(font=>'test.ttf', pointsize=>40, stroke=>'green', tex +t=>$text); $filename = "test.png"; $image->Write("$filename");
I think the only solution for me is to install linux back Thank You for reading my fluffuse GD; $im = new GD::Image(200, 36); $white = $im->colorAllocate(255,255,255); $black = $im->colorAllocate(0,0,0); $red = $im->colorAllocate(255,0,0); $blue = $im->colorAllocate(0,0,255); $im->stringTTF($black,"test.ttf", 12, 0, 0, 0,"Font Reactor") or die $ +!; open(IMAGE, ">test.png") or die; binmode IMAGE; print IMAGE $im->png;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Windows AS Perl 629 no good for Images
by Albannach (Monsignor) on Aug 29, 2001 at 18:17 UTC | |
|
Re: Windows AS Perl 629 no good for Images
by thunders (Priest) on Nov 10, 2001 at 02:10 UTC |