There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

Image::WMF - Perl extension for creating Windows Metafile images on UNIX.

SYNOPSIS

use Image::WMF;
my $im = new Image::WMF(200,200);
my $red = $im->colorAllocate(255,0,0);
my $blue = $im->colorAllocate(0,0,255);
$im->filledRectangle(20,20,50,50,$red);
$im->string(gdSmallFont,20,20,"My first WMF!", $blue);

$wmfdata = $im->wmf;

open(OUT, ">test.wmf") or warn "Can't create WMF file: $!\n";
print OUT $wmfdata;
close(OUT);

DESCRIPTION

This module is designed to provide the same interface to creating Windows metafiles as that presented by the GD module (fore creating PNG images).

Consult the GD module for basic API documentation.

EXPORT

None by default.

AUTHOR

Tony Cox, <avc@sanger.ac.uk>

SEE ALSO

GD.pm