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

ImageWriteParam should have a canWriteUncompressed() method

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.4.1
    • client-libs

      Name: rmT116609 Date: 04/30/2003


      A DESCRIPTION OF THE REQUEST :
      ImageWriteParam should have a canWriteUncompressed() method so that a GUI can decide to create a CheckBox (or other GUI element) to switch on/off the compression.

      The canWriteCompressed() method allows the current GUI to decide to put such
      an CheckBox on the screen, but some formats ONLY allow compressed writing.
      Such formats are JPEG and GIF.

      There is currently no way (to my knowledge) to find out that a format can only be written compressed.

      The GUI would at any time still be able to create GUI Elements for Compression quality and such.


      JUSTIFICATION :
        To create a corresponding GUI


      CUSTOMER SUBMITTED WORKAROUND :
      None that I know. Setting CompressionMode(DISABLED) on JPEGWriteParam does not throw an exception, so there is not much one can do.
      (Review ID: 185052)
      ======================================================================

            campbell Christopher Campbell (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: