net.sourceforge.jiu.data
Class MemoryPaletted8Image
- ByteChannelImage, IntegerImage, Paletted8Image, PalettedImage, PalettedIntegerImage, PixelImage
public class MemoryPaletted8Image
This class stores a paletted image with one byte per sample in memory.
checkPositionAndNumber , clear , clear , clear , clear , createCompatibleImage , createCopy , getAllocatedMemory , getBitsPerPixel , getByteSample , getByteSample , getByteSamples , getHeight , getMaxSample , getNumChannels , getSample , getSample , getSamples , getWidth , putByteSample , putByteSample , putByteSamples , putSample , putSample , putSamples |
maxSampleValue
private int maxSampleValue
palette
private Palette palette
This image's palette.
MemoryPaletted8Image
public MemoryPaletted8Image(int width,
int height)
Create an image of byte channels.
Image data will be completely in memory, so memory requirements are
width * height * numChannels
bytes.
Note that the data will not be initialized, so you should not assume
anything about its content.
width
- the horizontal resolution, must be non-zero and positiveheight
- the vertical resolution, must be non-zero and positive
MemoryPaletted8Image
public MemoryPaletted8Image(int width,
int height,
Palette palette)
checkPalette
public static void checkPalette(Palette palette)
getTypeDescription
public String getTypeDescription()