net.sourceforge.jiu.data

Interface PalettedImage

Known Subinterfaces:
Paletted8Image, PalettedIntegerImage
Known Implementing Classes:
MemoryPaletted8Image

public interface PalettedImage

This interface defines methods for paletted images. The image data of paletted images are usually integer numbers. Those numbers are index values into a list of colors called the palette or color map. This way, for images with few colors relatively small integers can be used as samples.

Method Summary

Palette
getPalette()
Gets the palette of this image.
void
setPalette(Palette palette)
Sets the palette of this image to the argument palette object.

Method Details

getPalette

public Palette getPalette()
Gets the palette of this image.
Returns:
palette object

setPalette

public void setPalette(Palette palette)
Sets the palette of this image to the argument palette object.
Parameters:
palette - the new palette for this image