Skip to content

Commit

Permalink
display then write
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Nov 24, 2023
1 parent 7ee8dca commit cb381a2
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 18 deletions.
3 changes: 0 additions & 3 deletions PerlMagick/demo/annotate_words.pl
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,3 @@
}

$image->Write("show:");

exit;

2 changes: 1 addition & 1 deletion PerlMagick/demo/button.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
$q->Raise('6x6');
$q->Annotate(font=>'Generic.ttf',text=>'Push Me',fill=>'black',
gravity=>'Center',pointsize=>18);
$q->Write('show:');
$q->Write('button.gif');
$q->Write('win:');
1 change: 0 additions & 1 deletion PerlMagick/demo/compose-specials.pl
Original file line number Diff line number Diff line change
Expand Up @@ -249,4 +249,3 @@
);
$montage->Write('show:');
$montage->Write('compose-specials.jpg');

5 changes: 2 additions & 3 deletions PerlMagick/demo/demo.pl
Original file line number Diff line number Diff line change
Expand Up @@ -512,8 +512,7 @@
$logo->Zoom('40%');
$montage->Composite(image=>$logo,gravity=>'North');

print "Display...\n";
$montage->Write('show:');
print "Write...\n";
$montage->Set(matte=>'false');
$montage->Write('demo.jpg');
print "Display...\n";
$montage->Write('win:');
2 changes: 1 addition & 1 deletion PerlMagick/demo/lsys.pl
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ sub lsys_execute
{
if ($translate{$command}) { &{$translate{$command}}(); }
}
$im->Write('show:');
$im->Write($filename);
$im->Write('win:');
}

1;
2 changes: 1 addition & 1 deletion PerlMagick/demo/piddle.pl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
#
$image->Annotate(font=>'Generic.ttf',text=>'This is a test!',
geometry=>'+30+140',fill=>'green',pointsize=>24,rotate=>45.0);
$image->Write('show:');
$image->Write('piddle.gif');
$image->Write('piddle.mvg');
$image->Write('win:');
3 changes: 1 addition & 2 deletions PerlMagick/demo/pixel-fx.pl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,5 @@
}

# display the result (or you could save it)
$dest->Write('win:');
$dest->Write('show:');
$dest->Write('pixel-fx.gif');

2 changes: 1 addition & 1 deletion PerlMagick/demo/shadow-text.pl
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
$image->Blur('0x1');
$image->Annotate(font=>'Generic.ttf',fill=>'red',stroke=>'blue',pointsize=>60,
text=>'Works like magick!',geometry=>'+4+86');
$image->Write('show:');
$image->Write('shadow.gif');
$image->Write('win:');
4 changes: 2 additions & 2 deletions PerlMagick/demo/shapes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#
# Write image.
#
print "Display image...\n";
$image->Write('show:');
print "Write image...\n";
$image->Write('shapes.gif');
print "Display image...\n";
$image->Write('win:');
3 changes: 1 addition & 2 deletions PerlMagick/demo/single-pixels.pl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,5 @@
$im->Scale('1000%');

# Output the changed pixels
$im->Write('win:');
$im->Write('show:');
$im->Write('single-pixels.gif');

2 changes: 1 addition & 1 deletion PerlMagick/demo/steganography.pl
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
$size="$width" . "x" . "$height" . "+91";
$stegano=Image::Magick->new(size=>$size);
$stegano->ReadImage('stegano:model.png');
$stegano->Write('show:');
$stegano->Write('stegano.gif');
$stegano->Write('win:');

0 comments on commit cb381a2

Please sign in to comment.