Bug 432289 - Anti-aliasing is applied when using pressure sensitive stylus, with anti-aliasing unchecked
Summary: Anti-aliasing is applied when using pressure sensitive stylus, with anti-alia...
Status: RESOLVED INTENTIONAL
Alias: None
Product: krita
Classification: Applications
Component: Brush Engine/Shape (show other bugs)
Version: 4.4.2
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-29 21:47 UTC by Domarius
Modified: 2021-01-30 02:51 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Brush stroke that starts aliased, but becomes anti-aliased as it gets smaller. (2.18 KB, image/png)
2021-01-29 21:47 UTC, Domarius
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Domarius 2021-01-29 21:47:49 UTC
Created attachment 135292 [details]
Brush stroke that starts aliased, but becomes anti-aliased as it gets smaller.

SUMMARY
When you don't want any anti-aliasing (or should I say, when you want aliasing), and you uncheck "Anti-aliasing" in the brush settings, drawing with the mouse is fine. But drawing with a stylus on a graphics tablet and allowing the pressure to control the size, will introduce anti-aliasing when the brush shrinks below a certain size.

This causes pixelated halos when using the fill tool.

STEPS TO REPRODUCE
1. Click the "Edit brush settings" icon
2. Uncheck "Anti-alias"
3. Draw on the canvas using a stylus and vary the pressure to control the size

OBSERVED RESULT
The brush stroke becomes anti-aliased below a certain size.

EXPECTED RESULT
The brush stroke should never become anti-aliased when anti-alias is unchecked.

SOFTWARE/OS VERSIONS
Windows: Unknown
macOS: Unknown
Linux/KDE Plasma: Confirmed
(available in About System)
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 wolthera 2021-01-29 21:52:23 UTC
Hi,

What you are seeing is not anti-aliasing, but rather a side effect of our subpixel coordinate system. If you want the edges to be hard, check the 'sharpness' option.

https://docs.krita.org/en/reference_manual/brushes/brush_settings/options.html#sharpness
Comment 2 Domarius 2021-01-30 02:51:34 UTC
Oh, so it would seem.  Certainly not an obvious thing; basically getting pixel sharp strokes is a two step process in Krita.  I asked on the forum weeks ago and didn't get a response, and I figured it has to be a bug.

Glad to see it works after all.