From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more
— |
#!/usr/bin/perl -w
podregister {
$image ->undo_group_start;
my @b = $image ->selection_bounds;
my $w = $b [3] - $b [1];
my $h = $b [4] - $b [2];
$drawable ->edit_copy;
$image ->selection_none;
for ( my $i = 0; $i < $repeats ; $i ++) {
$b [1] += $xoffset ;
$b [2] += $yoffset ;
$image ->select_rectangle(CHANNEL_OP_REPLACE, @b [1,2], $w , $h );
$drawable ->edit_paste(FALSE)->floating_sel_anchor;
$image ->selection_none
}
$image ->undo_group_end;
return ;
};
exit main;
|