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

## nextapp.echo2.webcontainer.image
Interface PngEncoder.Filter

Enclosing class:
  PngEncoder

    public static interface PngEncoder.Filter

An interface for PNG filters. Filters are used to modify the method in which pixels of the image are stored in ways that will achieve better compression.

Method Summary
`void` | `filter(byte[] filterOutput, byte[] currentRow, byte[] previousRow, int outputBpp)` Filters the data in a given row of the image.
`int` | `getType()` Returns the PNG type code for the filter.

Method Detail

### filter

    void filter(byte[] filterOutput,
                byte[] currentRow,
                byte[] previousRow,
                int outputBpp)

  Filters the data in a given row of the image.

  Parameters:
    `currentRow` - a byte array containing the data of the row of the image to be filtered
    `previousRow` - a byte array containing the data of the previous row of the image to be filtered
    `filterOutput` - a byte array into which the filtered data will be placed

### getType

    int getType()

  Returns the PNG type code for the filter.

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