Draw tool - Possible to draw shape outside image canvas

*** Please report new bugs here! ***

Moderators: helmut, XnTriq, xnview, Dreamer

cday
XnThusiast
Posts: 3264
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Draw tool - Possible to draw shape outside image canvas

Post by cday »

When using the draw tool it is possible to draw a shape on the screen that extends outside the image canvas:

Screen-2022-03-24_10-50-44.png

When the above image is saved, only two horizontal lines extending across the width of the canvas are added to the image.
You do not have the required permissions to view the files attached to this post.
User avatar
xnview
Author of XnView
Posts: 37759
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Draw tool - Possible to draw shape outside image canvas

Post by xnview »

you would like that drawing will be clipping by image rectangle?
Pierre.
cday
XnThusiast
Posts: 3264
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: Draw tool - Possible to draw shape outside image canvas

Post by cday »

xnview wrote: Mon Apr 11, 2022 1:08 pm you would like that drawing will be clipping by image rectangle?
My thinking was that when drawing a shape, it shouldn't be possible to move the mouse cursor outside the edges of the image canvas being annotated, if that can be implemented?

So the rectangle tool, for example, would always draw a rectangle.