java - In JavaFX, is there a way to antialias image when drawing with GraphicsContext.drawImage()? -
i'm using graphicscontext.drawimage(img, x, y, w, h) draw image scaled fit region on canvas. i'm noticing aliasing artifacts due scaling. javafx have equivalent swing's renderinghints.value_interpolation_bicubic?
there 2 ways scale image. 1 scaling via drawing operator have done , other 1 scale image when load it. constructors of image class have parameters specified desired bounds of image , in addition have parameter called "smooth" which, if set true, should want.
Comments
Post a Comment