File: PalettedImage.java

package info (click to toggle)
java-imaging-utilities 0.14.2%2B3-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 2,304 kB
  • ctags: 3,737
  • sloc: java: 31,190; sh: 238; xml: 30; makefile: 19
file content (33 lines) | stat: -rw-r--r-- 840 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
 * PalettedImage
 *
 * Copyright (c) 2001, 2002, 2003 Marco Schmidt.
 * All rights reserved.
 */

package net.sourceforge.jiu.data;

import net.sourceforge.jiu.data.Palette;

/**
 * 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 <em>palette</em> or <em>color map</em>.
 * This way, for images with few colors relatively small integers
 * can be used as samples. 
 */
public interface PalettedImage
{
	/** 
	 * Gets the palette of this image.
	 * @return palette object
	 */
	Palette getPalette();

	/** 
	 * Sets the palette of this image to the argument palette object.
	 * @param palette the new palette for this image
	 */
	void setPalette(Palette palette);
}