Sign in to follow this  
PaintNetRus

Problem. Shape type: Rounded rectangle

Recommended Posts

I wanted to create Rounded rectangle.

But the result surprised me. It looks very bad. Angles are curves.

 

tested on Paint.Net 4.1.2, 4.1.6, and alpha 4.1.7

 

Select Shapes tool and set:

- Shape type: Rounded rectangle

- Brush width: 1

- Corner size: 1

- Antialiasing Disabled

 

and create a shape on canvas

Problem - only two corners will be rounded

Spoiler

 

image.png.38f01a9a913601faa6315abf25f0802b.png

 

 

 

 

 

then increase Corner Size - 2
Problem - corners look very bad, they are all different

Spoiler

 

image.png.4e900c71ca18292fea8d4486cc2394b6.png

 

 

and increase Corner size a little more - 6
look at this

Spoiler

 

image.png.4f85b17f92e1644eb0c3fa6b5fa8c61f.png

 

 


However, the corners are displayed correctly if Antialiasing is Enabled.

look at gif

Spoiler

 

CornerProblem.gif.9fb46f2f4abc7ee23b96fac66a7c7452.gif

 


but even when using Antialiasing, the corners are not 100% identical, you can make sure to compare the color at the smoothing points

compare points at top and bottom

Spoiler

 

image.png.fdc726681305a67af217c05b36f9474e.png

 

 

Edited by PaintNetRus
update for screenshot 2

Share this post


Link to post
Share on other sites

I just had a quick look at this 'problem' and whilst it does appear to be real I'd point out it only seems to occur when you use a one pixel brush width.

 

AA off I drew a rounded square with a one pixel brush and two out of the four corners did indeed have a slightly different shapes similar to the third picture above. Unsurprisingly switching AA on resulted in two identical and two slightly different corners as well.

 

Trying with different corner sizes only exacerbated the 'problem'.

 

But the moment you switch to the default 2 pixels brush width all looks good and 100% matching whatever the corner size, AA off or on, as far as I've tested it.

 

My question would be: when are you actually going to require a critically perfect one pixel width rounded corner square/rectangle? I'm sure there are niche purposes, like the creation of small icons 32x32 or something similar, but for most users this imperfection is practically irrelevant.   

Share this post


Link to post
Share on other sites
1 hour ago, IHaveNoName said:

My question would be: when are you actually going to require a critically perfect one pixel width rounded corner square/rectangle?

I just wanted to create a button like that

image.png.c39a80447847720d2e68a96aabdf99bc.png

and I chose a simple way to do it, as it seemed to me - Shape type: Rounded rectangle

but the final result was not as I expected, and I decided to report it.


Similar problem with - Shape type: Ellipse

but most likely it should be so

Spoiler

 

image.png.dd4dbf5dada91d4d5b2eaec5a3d0421c.png

 

 

Edited by PaintNetRus

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this