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


Image-WMF documentation  | view source Contained in the Image-WMF distribution.

Index


NAME

Top

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

SYNOPSIS

Top

  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

Top

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

Top

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

SEE ALSO

Top

GD.pm


Image-WMF documentation  | view source Contained in the Image-WMF distribution.