Uses of Class
net.mtrop.doom.graphics.Colormap
Package
Description
Contains abstracts and implementations of graphic types.
Contains utility classes.
-
Uses of Colormap in net.mtrop.doom.graphics
Modifier and TypeMethodDescriptionColormap.copy()
Creates a new colormap by copying the contents of this one.static Colormap
Colormap.createIdentityMap()
Creates a color map where each color is mapped to its own index (index 0 is palette color 0 ...Colormap.setIdentity()
Resets the color map to where each color is mapped to its own index (index 0 is palette color 0 ...Colormap.setPaletteIndex
(int index, int paletteIndex) Sets the palette index of a specific index in the map.Colormap.setTranslation
(int startIndex, int endIndex, int startValue, int endValue) Sets a colormap translation by remapping groups of contiguous indices. -
Uses of Colormap in net.mtrop.doom.util
Modifier and TypeMethodDescriptionstatic Colormap[]
GraphicUtils.createColormapsFromGraphic
(GraphicObject graphic) Creates a series of colormaps using a two-dimensional graphic, assumed indexed.Modifier and TypeMethodDescriptionstatic Flat
GraphicUtils.createFlat
(BufferedImage image, Palette palette, Colormap colormap) Creates aFlat
from aBufferedImage
.static Flat
GraphicUtils.createFlat
(PNGPicture pngPicture, Palette palette, Colormap colormap) Creates aFlat
from aPNGPicture
.static BufferedImage
GraphicUtils.createImage
(Flat flat, Palette palette, Colormap colormap) Creates aBufferedImage
from aFlat
.static BufferedImage
GraphicUtils.createImage
(Picture picture, Palette palette, Colormap colormap) Creates aBufferedImage
from aFlat
.static Picture
GraphicUtils.createPicture
(BufferedImage image, Palette palette, Colormap colormap) Creates aPicture
from aBufferedImage
.static Picture
GraphicUtils.createPicture
(PNGPicture pngPicture, Palette palette, Colormap colormap) Creates aPicture
from aBufferedImage
.static PNGPicture
GraphicUtils.createPNGImage
(Picture picture, Palette palette, Colormap colormap) Creates aPNGPicture
from aPicture
.static void
GraphicUtils.setColormap
(Colormap colormap, Palette target, Palette sampled) Sets the indices of aColormap
by attempting to match colors in a palette from other colors in a different palette.