Antialiased Vector Layers

Hi

I’m not sure the FX Layer is the best place for that.

I didn’t took a look into code, but:

  • FX Layer use ASL format for storage (an Adobe proprietary format) so I’m not comfy to enter into this

  • FX Layer is (probably) applied once layer content is generated, like a kind of filter: it’s a slow method which implies to render antialiased content and then try to fix it, exactly like this: You want Krita's text to be crispy, pixel and not Anti-Aliased? Try this tutorial!
    It’s not a native anti-aliasing render and also it will be too complex for me to implement :sweat_smile:

  • I have no idea about how anti aliasing can be applied on a paint layer
    A paint layer is a raster layer (pixels) so it’s normally the brush that will define what to draw on layer…
    Using the method evoked above will probably generate weird and unexpected results on a “painted” layer

Here the implementation I’ve made on a vector layer it’s quite simple:

  • Krita use simple drawing instruction (line, circle, paths, …) that are already able to natively render with or without anti-aliasing
  • When a vector object is rendered as pixels in layer, it use these drawing instructions
  • What I did here is just to remove the “hard-coded” anti-aliasing flag to activate/deactivate it dynamically according to the layer setting: it’s fast to render, it’s simple to implement and to maintain :slight_smile:

Grum999

4 Likes