[magick-users] Fill pattern in rectangle using PerlMagick Draw('primitive' => 'rectangle', ..)

Ron Savage ron at savage.net.au
Tue Jul 18 15:24:26 PDT 2006


On Tue, 18 Jul 2006 15:19:46 +0100, Ramsden, John wrote:

Hi John

> but I can't for the life of me figure out how to get ImageMagick to
> tile a rectangle with one of the built-in patterns detailed at:
> http://www.imagemagick.org/script/formats.php#builtin-patterns

Here's a tested program:

#!/usr/bin/perl

use strict;
use warnings;

use Image::Magick;

# ----------------

my($image)	= Image::Magick -> new(size => '200x100');
my($result)	= $image -> Read('pattern:circles');

die $result if $result;

$result = $image -> Write('circles.png');

die $result if $result;

> Seems like all available ImageMagick documentation concentrates on
> the "flash" image transformation stuff, and practically ignores the
> humble "draw" vector-graphic functionality.

Free software + free help => You should be grateful :-).
-- 
Cheers
Ron Savage, ron at savage.net.au on 19/07/2006
http://savage.net.au/index.html
Let the record show: Microsoft is not an Australian company





More information about the Magick-users mailing list