On Tue, 25 Jun 2002, Rob Wilson wrote:

> Just getting to learn GD in order to use graphs (eg Chart::Plot).
> 
> [....]
> 
> Example script (from GD doc):
> 
> use GD;
>          # create a new image
>          $im = new GD::Image(100,100);
>          # allocate some colors
>          $white = $im->colorAllocate(255,255,255);
>          $black = $im->colorAllocate(0,0,0);
>          $red = $im->colorAllocate(255,0,0);
>          $blue = $im->colorAllocate(0,0,255);
>          # make the background transparent and interlaced
>          $im->transparent($white);
 [....]
> open (OUT,">gdplot.jpg");
> 
>          # make sure we are writing to a binary stream
>          binmode (OUT);
>          #
>          print OUT $im->jpeg();
> 
> 
> close OUT;

What does transparent() do on a JPEG image? JPEG doesn't support 
transparency, so could this be causing the GD lib to throw an error of 
some sort?

-- 
Ernest MacDougal Campbell III, MCP+I, MCSE <[EMAIL PROTECTED]>
http://dougal.gunters.org/             http://spam.gunters.org/
  Web Design & Development:  http://www.mentalcollective.com/
       This message is guaranteed to be 100% eror frea!


_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to