NextApp Echo
App Container 1.0.5

nextapp.echoservlet.image
Interface PngEncoder.Translator

All Known Implementing Classes:
PngEncoder.ByteTranslator, PngEncoder.IntTranslator
Enclosing interface:
PngEncoder

static interface PngEncoder.Translator

An interface for translators, which translate pixel data from a writable raster into an R/G/B/A ordering required by the PNG specification. Pixel data in the raster might be available in three bytes per pixel, four bytes per pixel, or as integers.


Method Summary
 void translate(byte[] outputPixelQueue, int row)
          Translates a row of the image into a byte array ordered properly for a PNG image.
 

Method Detail

translate

public void translate(byte[] outputPixelQueue,
                      int row)
Translates a row of the image into a byte array ordered properly for a PNG image.

Parameters:
outputPixelQueue - The byte array in which to store the translated pixels.
row - The row index of the image to translate.

NextApp Echo
App Container 1.0.5