JDK-8224800 : Add API to ImageView to disable image smoothing.
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: scenegraph
  • Affected Version: openjfx13
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2019-05-26
  • Updated: 2019-05-28
  • Resolved: 2019-05-28
Related Reports
Relates :  
Description
A DESCRIPTION OF THE PROBLEM :
Canvas recently got a setImageSmoothing() method which disabled the smoothing algorithm when the Canvas was scaled. This was useful for those creating drawing programs or games with pixal graphics.

For similar reasons I would like to request a similar method be added to the ImageView API. Currently the setSmooth() method of ImageView only determines which smoothing algorithm to use without a way of turning it off completely.

Since there is confusion if there was a setSmooth and setImageSmoothing method perhaps only have setImageSmoothing which takes in an ENUM (e.g Smooth.OFF, Smooth.SLOW, Smooth.FAST)?.



Comments
There is an open issue to fix the already-existing ImageView::smooth property so that setting it to false will disable image smoothing. We don't plan to add a hint to control how the smoothing is done when enabled.
28-05-2019