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

Add-on Image Formats

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P5 P5
    • None
    • 1.1.2
    • client-libs
    • None
    • 2d
    • x86
    • windows_95



      Name: rlT66838 Date: 09/02/97


      There isn't a standard way to teach the system
      about new image formats. The 'natural' way of
      doing so would be to define an 'imageFormat'
      interface, which would have a 'getImage' method
      accepting a URL. If the URL is recognized by the
      imageFormat (by using the file prefix or any other
      criteria), it would return an Image object;
      otherwise null. given a registerImageFormat
      method, getImage could just loop on the available
      formats and return the first one which claims the
      URL.

      Variants would be to allow the imageFormat to
      examine the first few bytes of the file; or,
      alternatively, have each imageFormat provide a
      getFilePrefix method and have getImage use this
      exclusively to decide which imageFormat to use.

      ======================================================================

            jehung Jeannette Hung (Inactive)
            rlewis Roger Lewis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: