5 use Test::More tests => 3;
7 BEGIN { use_ok('Imager::Filter::Flines') }
9 -d "testout" or mkdir "testout";
11 Imager->open_log(log => "testout/t00flines.log");
14 my $im = Imager->new(xsize=>150, ysize=>150);
16 $im->box(filled=>1, xmin => 70, ymin=>25, xmax =>130, ymax => 125,
18 $im->box(filled=>1, xmin=>20, ymin=>25, xmax=>80, ymax=>125,
20 $im->arc(x =>75, y=>75, r=>30, color => 'FF0000');
21 $im->filter(type=>"conv", coef => [0.1, 0.2, 0.4, 0.2, 0.1]);
23 ok($im->filter(type=>'flines'),
25 or print "# ", $im->errstr, "\n";
26 ok($im->write(file => 'testout/t00flines.ppm'),
33 unless ($ENV{IMAGER_KEEP_FILES}) {
34 unlink 'testout/t00flines.ppm';
35 unlink "testout/t00flines.log";