Constructor and Description |
---|
IndexedBitmap(int xsize,
int ysize) |
IndexedBitmap(int xsize,
int ysize,
int paletteSize,
boolean startAtTop) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index) |
int |
addRepeats(int repeats,
int index)
Add one (or more) pixels of the same color to the image.
|
Palette |
getPalette()
Returns the palette of the indexed bitmap.
|
byte |
getPixelIndex(int x,
int y) |
add, addRepeats, getMap, getPixel, getPixelBlue, getPixelGreen, getPixelRed, getPixelRGB, goToNextScanLine, setPixel, setPixel, toString
public IndexedBitmap(int xsize, int ysize, int paletteSize, boolean startAtTop)
public IndexedBitmap(int xsize, int ysize)
public int addRepeats(int repeats, int index)
repeats
- - The number of pixels to be added.index
- - The palette index of the color to be addedpublic void add(int index)
public byte getPixelIndex(int x, int y)
public Palette getPalette()
Copyright © 2020. All rights reserved.