Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

nextapp.echoservlet.image
Interface PngEncoder.Translator  view PngEncoder.Translator download PngEncoder.Translator.java

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.