Uses of Class
net.mtrop.doom.graphics.Colormap
Packages that use Colormap
Package
Description
Contains abstracts and implementations of graphic types.
Contains utility classes.
-
Uses of Colormap in net.mtrop.doom.graphics
Methods in net.mtrop.doom.graphics that return ColormapModifier 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.Constructors in net.mtrop.doom.graphics with parameters of type Colormap -
Uses of Colormap in net.mtrop.doom.util
Methods in net.mtrop.doom.util that return ColormapModifier and TypeMethodDescriptionstatic Colormap[]
GraphicUtils.createColormapsFromGraphic
(GraphicObject graphic) Creates a series of colormaps using a two-dimensional graphic, assumed indexed.Methods in net.mtrop.doom.util with parameters of type ColormapModifier 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.