NextApp Echo
App Container 1.0.5

nextapp.echoservlet.image
Class PngEncoder.UpFilter

java.lang.Object
  extended bynextapp.echoservlet.image.PngEncoder.UpFilter
All Implemented Interfaces:
PngEncoder.Filter
Enclosing class:
PngEncoder

private static class PngEncoder.UpFilter
extends java.lang.Object
implements PngEncoder.Filter

An implementation of an "Up" filter.


Constructor Summary
private PngEncoder.UpFilter()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PngEncoder.UpFilter

private PngEncoder.UpFilter()
Method Detail

filter

public void filter(byte[] filterOutput,
                   byte[] currentRow,
                   byte[] previousRow,
                   int outputBpp)
Description copied from interface: PngEncoder.Filter
Filters the data in a given row of the image.

Specified by:
filter in interface PngEncoder.Filter
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.
See Also:
PngEncoder.Filter.filter(byte[], byte[], byte[], int)

getType

public int getType()
Description copied from interface: PngEncoder.Filter
Returns the PNG type code for the filter.

Specified by:
getType in interface PngEncoder.Filter
See Also:
PngEncoder.Filter.getType()

NextApp Echo
App Container 1.0.5