From: Jakob Haufe Date: Thu, 17 May 2018 18:51:29 +0000 (+0000) Subject: Improve preview overlay usability X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c15084e50c7943a3d781903d7aae5480121ebefa;p=pdfstitch 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. --- 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(); }