NextApp Echo3
v3.0.b4

nextapp.echo.webcontainer.util
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.


NextApp Echo3
v3.0.b4