Skip to content

Example of anti-aliasing on shape, js-canvas and image

Notifications You must be signed in to change notification settings

siexp/qml-anitalising-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qml-anitalising-example

Example of anti-aliasing on shape, js-canvas and image

Layer

Layer disable any antialiasing features of items in QML because it has its own rendering mechanism (TODO investigate what exactly happens)

JS-Canvas

You need to set renderTarget and renderStrategy.

Canvas {
...
  renderTarget: Canvas.FramebufferObject
  renderStrategy: Canvas.Cooperative
...
}

Image

You need to set both antialiasing and mipmap.

Image {
...
  antialiasing: true
  mipmap: true
...
}

Shape

Antialiasing allows you to drew shape smoothly however it doesn't work for ColorOverlay (which is layer actually).

About

Example of anti-aliasing on shape, js-canvas and image

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published