Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6447 [classlib] [imageio] Implement missing functionality in imageio module
  3. HARMONY-6566

Implement ImageTypeSpecifier.createBufferedImage() and ImageTypeSpecifier.getBufferedImageType()

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0M15
    • Classlib
    • None
    • Patch Available

    Description

      Spec:
      http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/ImageTypeSpecifier.html#createBufferedImage(int, int)
      http://java.sun.com/j2se/1.4.2/docs/api/javax/imageio/ImageTypeSpecifier.html#getBufferedImageType()

      Create a BufferedImage requires two major components.
      1. ColorModel - the ColorModel is there when ImageTypeSpecifier object created.
      2. WritableRaster - the WritableRaster can be created use the SampleModel

      For getBufferedImageType(), we create a dummy BufferedImage from createBufferedImage with width and height to be 1, and get the type of this dummy object

      Attachments

        1. HARMONY-6566.diff
          4 kB
          Lang Yang

        Activity

          People

            tellison Tim Ellison
            yanglang Lang Yang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: