The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

JOT::GD - Use a JOT file/stream to make an image

SYNOPSIS

use JOT::GD;

$jot = JOT::GD->new(500,500,250,250);
$jot->parse_file( $ARGV[0] );

$im = $jot->GD();

$white = $im->colorAllocate(255,255,255);
$black = $im->colorAllocate(0,0,0);

$jot->draw( $black );

open F, ">" . $ARGV[0]. ".png" or die "Could not open file ($!)!";
print F $im->png;
close F;

DESCRIPTION

JOT::GD is a subclass from JOT. It can be used to produce an image from JOT data.

HISTORY

8 November 2000 : First release 30 May 2001 : Adapted for CPAN release

THANKS

Thanks go to Avantgo, http://www.avantgo.com for supporting the scribble field. Thanks go to Lincoln Stein ( http://stein.cshl.org/~lstein/ ) for GD. and Thomas Bouttel ( http://www.boutell.com/gd/ ) for libgd.

AUTHOR AND COPYRIGHT

Johan Van den Brande <johan@vandenbrande.com>, http://www.vandenbrande.com/

Copyright (c) 2000 Johan Van den Brande. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the Artistic License, distributed with Perl.

VERSION

VERSION 0.01