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

RenderingHints class has poor documentation of KEY_xxx and VALUE_xxx constants

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.2.1, 1.4.0
    • client-libs
    • 2d
    • b95
    • generic
    • generic, solaris_2.5.1

      While browsing the Internet looking for a hint on how to make
      a thumbnail of a given image, I came across some code that
      set some RenderingHints into a Graphics2D object before calling
      the drawImage method. Wanting to understand what those hints
      meant, I turned to the RenderingHints javadoc, only to be flusterated
      and consternated and otherwise inconvenienced by the fact that the
      descriptions doesn't give the reader any clue as to what they mean.

      e.g. The documentation for RenderingHints.KEY_ALPHA_INTERPOLATION
      says simply

         Alpha interpolation hint key

      Well, hmm, that's what they call a "Circular Definition" in the
      dictionary business. That is, all that's happening is you're
      repeating the name of the constant, and not providing any definition
      of what the actual semantics are. Any developer reading this is
      going to come away confused.

            flar Jim Graham
            dherronsunw David Herron (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: