Class IcnsDecoder
java.lang.Object
org.apache.commons.imaging.formats.icns.IcnsDecoder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int[]
private static final int[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
apply1BPPMask
(byte[] maskData, ImageBuilder image) private static void
apply8BPPMask
(byte[] maskData, ImageBuilder image) private static void
decode1BPPImage
(IcnsType imageType, byte[] imageData, ImageBuilder image) private static void
decode32BPPImage
(IcnsType imageType, byte[] imageData, ImageBuilder image) private static void
decode4BPPImage
(IcnsType imageType, byte[] imageData, ImageBuilder image) private static void
decode8BPPImage
(IcnsType imageType, byte[] imageData, ImageBuilder image) static List
<BufferedImage> decodeAllImages
(IcnsImageParser.IcnsElement[] icnsElements) static BufferedImage
decodeImage
(IcnsImageParser.IcnsElement[] icnsElements, int index) private static BufferedImage
decodeImageImpl
(IcnsType imageType, IcnsImageParser.IcnsElement imageElement, IcnsImageParser.IcnsElement[] icnsElements)
-
Field Details
-
PALETTE_4BPP
private static final int[] PALETTE_4BPP -
PALETTE_8BPP
private static final int[] PALETTE_8BPP
-
-
Constructor Details
-
IcnsDecoder
private IcnsDecoder()
-
-
Method Details
-
decode1BPPImage
-
decode4BPPImage
-
decode8BPPImage
-
decode32BPPImage
-
apply1BPPMask
- Throws:
ImageReadException
-
apply8BPPMask
-
decodeAllImages
public static List<BufferedImage> decodeAllImages(IcnsImageParser.IcnsElement[] icnsElements) throws ImageReadException - Throws:
ImageReadException
-
decodeImage
public static BufferedImage decodeImage(IcnsImageParser.IcnsElement[] icnsElements, int index) throws ImageReadException - Throws:
ImageReadException
-
decodeImageImpl
private static BufferedImage decodeImageImpl(IcnsType imageType, IcnsImageParser.IcnsElement imageElement, IcnsImageParser.IcnsElement[] icnsElements) throws ImageReadException - Throws:
ImageReadException
-