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

Update Image.getScaledInstance with acceleration or documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.0
    • client-libs
    • None
    • 2d
    • Fix Understood
    • generic
    • generic

      Some time ago, when I found that my image scaling was incredibly slow, I was told by the 2D team that using Image.getScaledInstance() was not recommended any more. The preferred approach is to create a new Image and paint to it, scaling on the fly, to take advantage of faster loops.

      I am still seeing people using getScaledInstance() and I've been trying to correct them. But we need to fix this in our API. Either a) by deprecating the old method, b) documenting the preferred approach, c) changing the implementation to use the new faster loops.

      I suspect there may be similar situations with other methods - but I can't confirm.
      ###@###.### 2004-11-17 20:58:35 GMT

            campbell Christopher Campbell (Inactive)
            shickeysunw Shannon Hickey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: