JIU 0.12.0 Homepage

net.sourceforge.jiu.data
Interface PalettedImage

All Known Subinterfaces:
Paletted8Image, PalettedIntegerImage
All 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 Detail

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

JIU 0.12.0 Homepage

Copyright © 2000, 2001, 2002, 2003, 2004 Marco Schmidt