Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8204060

[Canvas] Add API in GraphicsContext to control image smoothing

    Details

      Backports

        Description

        Need a mechanism to display and zoom images of type javafx.scene.image.Image at an application without smoothing.
        Usage of a function:
                          public void drawImage(Image img, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh)
                                of class javafx.scene.canvas.GraphicsContext

        results to a smoothing of original image when using different zoom levels. At an application it is essential to see the original content of an image.
        So, is there a way to disable that smoothing and any other filtering?
        Reloading the image should not be required.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  arapte Ambarish Rapte
                  Reporter:
                  shadowbug Shadow Bug
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  8 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: