From c15084e50c7943a3d781903d7aae5480121ebefa Mon Sep 17 00:00:00 2001 From: Jakob Haufe Date: Thu, 17 May 2018 18:51:29 +0000 Subject: [PATCH] Improve preview overlay usability Add small rectangles at the corners of the preview overlay. This makes it easier to place the edges of the cropping area on black borders or lines. --- pdfstitch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdfstitch b/pdfstitch index 2fec227..a754d0a 100755 --- a/pdfstitch +++ b/pdfstitch @@ -160,6 +160,10 @@ else my $previewcontent = $previewpage->gfx(); $previewcontent->egstate($transparency); $previewcontent->rect($llx, $lly, $urx, $ury); + $previewcontent->rect($llx - 20, $lly + $ury, 20, 20); # upper left + $previewcontent->rect($llx + $urx, $lly + $ury, 20, 20); # upper right + $previewcontent->rect($llx - 20, $lly - 20, 20, 20); # lower left + $previewcontent->rect($llx + $urx, $lly - 20, 20, 20); # lower right $previewcontent->fillcolor('%F000'); $previewcontent->fill(); } -- 2.39.5