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

rfe: Want a non-scaling drawImage method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 1.4.0
    • 1.1.3
    • client-libs
    • None
    • 2d
    • merlin
    • x86
    • windows_95



      Name: joT67522 Date: 09/04/97


      The Graphics class currently provides a drawImage method that takes 8 int parameters,
      and scales a rectangle from the source image into the destination. Even if the source
      rectangle and the destination rectangle are the same size, the scaling code is invoked,
      producing very slow results.

      What would be handy is a drawImage method (actually two, one for transparency handling
      as well), that look somethging like this:

      Graphics.drawImage(Image image, int dx1, int dy1, int dx2, int dy2, int sx, int sy, ImageObserver observer);

      dx1, dy1, dx2 & dy2 define the destination rectangle, while sx, sy provide the coordinates
      in the source image for the top left corner of the rectangle that will be drawn.

      Any chance of doing something like this?

      Thanks in advance,
           ###@###.### - David Goodenough
      company - Abalone , email - ###@###.###
      ======================================================================

            jehung Jeannette Hung (Inactive)
            johsunw Joon Oh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: