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

[Canvas] Canvas needs a fast rectangular clip capabiity

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 8u40
    • 7u6
    • javafx
    • None

      Canvas has a general clip() method, but it is currently implemented in the most general way that assumes that the clip is an arbitrary shape with soft edges. The performance would be much higher if we detected rectangular clips and implemented them using scissor clipping rather than raster operations.

      It would be even more useful to programmers to implement a front end API on GraphicsContext to let them specify a rectangular clip up front rather than having to construct a path.

            flar Jim Graham
            flar Jim Graham
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: