com.sun.pdfview.colorspace
public class IndexedColor extends PDFColorSpace
| Field Summary | |
|---|---|
| protected byte[] | finalcolors
r,g,and b components of the color table as a single array, for
Java's IndexColorModel |
| Constructor Summary | |
|---|---|
| IndexedColor(PDFColorSpace base, int count, PDFObject stream)
create a new IndexColor PDFColorSpace based on another PDFColorSpace,
a count of colors, and a stream of values. | |
| IndexedColor(Color[] table)
create a new IndexColor PDFColorSpace based on a table of colors.
| |
| Method Summary | |
|---|---|
| byte[] | getColorComponents()
Get the table of color components |
| int | getCount()
Get the number of indices |
Parameters: base the color space in which the data is interpreted count the number of colors in the table stream a stream of bytes. The number of bytes must be count*n, where n is the number of components in the base colorspace.
Parameters: table an array of colors