Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.netbeans.jemmy.util
Class PNGDecoder

    java.lang.Object
      |
      +--org.netbeans.jemmy.util.PNGDecoder

public class PNGDecoder
extends java.lang.Object

Allows to load PNG graphical file.

Author:
  Alexandre Iline

Constructor Summary
`PNGDecoder(java.io.InputStream in)` Constructs a PNGDecoder object.

Method Summary
`java.awt.image.BufferedImage` | `decode()` Decodes image from an input stream passed into constructor.
`static java.awt.image.BufferedImage` | `decode(java.lang.String fileName)` Decodes image from file.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### PNGDecoder

    public PNGDecoder(java.io.InputStream in)

  Constructs a PNGDecoder object.
  Parameters:
    `in` - input stream to read PNG image from.

Method Detail

### decode

    public java.awt.image.BufferedImage decode()
                                        throws java.io.IOException

  Decodes image from an input stream passed into constructor.
  Returns:
    a BufferedImage object
  Throws:
    `java.io.IOException` -

### decode

    public static java.awt.image.BufferedImage decode(java.lang.String fileName)

  Decodes image from file.
  Parameters:
    `fileName` - a file to read image from
  Returns:
    a BufferedImage instance.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD