Available Methods
Related Classes
- java.util.Arrays
- java.io.File
- java.io.ByteArrayOutputStream
- java.util.Properties
- java.awt.image.BufferedImage
- javax.imageio.ImageIO
- java.awt.Color
- java.awt.Dimension
- java.awt.Graphics2D
- java.awt.Graphics
- java.awt.Rectangle
- java.awt.Image
- java.awt.RenderingHints
- java.awt.geom.AffineTransform
- java.awt.image.WritableRaster
- java.awt.image.ColorModel
- javax.imageio.stream.ImageOutputStream
- java.awt.GraphicsConfiguration
- java.awt.image.RenderedImage
- java.awt.image.Raster
- java.awt.image.DataBufferByte
- javax.imageio.IIOImage
- java.awt.image.DataBufferInt
- javax.imageio.ImageWriteParam
- java.awt.Transparency
Java Code Examples for java.awt.image.IndexColorModel#getAlphas()
The following examples show how to use
java.awt.image.IndexColorModel#getAlphas() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PaletteBox.java From healthcare-dicom-dicomweb-adapter with Apache License 2.0 | 5 votes |
/** Gets the LUT from the <code>IndexColorModel</code> as an two-dimensional * byte array. */ private static byte[][] getLUT(IndexColorModel icm) { int[] comp = icm.getComponentSize(); int size = icm.getMapSize(); byte[][] lut = new byte[comp.length][size]; icm.getReds(lut[0]); icm.getGreens(lut[1]); icm.getBlues(lut[2]); if (comp.length == 4) icm.getAlphas(lut[3]); return lut; }