NextApp Echo
App Container 1.0.5

nextapp.echoservlet.image
Interface PngEncoder.Filter

All Known Implementing Classes:
PngEncoder.AverageFilter, PngEncoder.PaethFilter, PngEncoder.SubFilter, PngEncoder.UpFilter
Enclosing interface:
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

public 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

public int getType()
Returns the PNG type code for the filter.


NextApp Echo
App Container 1.0.5