J
Josef Moellers
Hi,
I'd like to draw lines only one pixel thin using Image::Magick.
The following draws lines two pixels thick:
#! /usr/bin/perl
use warnings;
use strict;
use Image::Magick;
my $img = Image::Magick->new(size => '22x22');
$img->ReadImage('xc:white');
$img->Draw(primitive => 'line',
linewidth => 1,
method => 'point',
points => '0,10 20,10',
fill => 'black',
antialias => 'false',
);
$img->Transparent(color => 'white');
$img->Write('thick.png');
What options are required to draw lines one pixel wide?
Besides "linewidth" I also tried "strikewidth" to no avail.
Josef
I'd like to draw lines only one pixel thin using Image::Magick.
The following draws lines two pixels thick:
#! /usr/bin/perl
use warnings;
use strict;
use Image::Magick;
my $img = Image::Magick->new(size => '22x22');
$img->ReadImage('xc:white');
$img->Draw(primitive => 'line',
linewidth => 1,
method => 'point',
points => '0,10 20,10',
fill => 'black',
antialias => 'false',
);
$img->Transparent(color => 'white');
$img->Write('thick.png');
What options are required to draw lines one pixel wide?
Besides "linewidth" I also tried "strikewidth" to no avail.
Josef