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 voidapply1BPPMask(byte[] maskData, ImageBuilder image) private static voidapply8BPPMask(byte[] maskData, ImageBuilder image) private static voiddecode1BPPImage(IcnsType imageType, byte[] imageData, ImageBuilder image) private static voiddecode32BPPImage(IcnsType imageType, byte[] imageData, ImageBuilder image) private static voiddecode4BPPImage(IcnsType imageType, byte[] imageData, ImageBuilder image) private static voiddecode8BPPImage(IcnsType imageType, byte[] imageData, ImageBuilder image) static List<BufferedImage> decodeAllImages(IcnsImageParser.IcnsElement[] icnsElements) static BufferedImagedecodeImage(IcnsImageParser.IcnsElement[] icnsElements, int index) private static BufferedImagedecodeImageImpl(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
-
apply1BPPMask
- Throws:
ImagingException
-
apply8BPPMask
-
decode1BPPImage
-
decode32BPPImage
-
decode4BPPImage
-
decode8BPPImage
-
decodeAllImages
public static List<BufferedImage> decodeAllImages(IcnsImageParser.IcnsElement[] icnsElements) throws ImagingException - Throws:
ImagingException
-
decodeImage
public static BufferedImage decodeImage(IcnsImageParser.IcnsElement[] icnsElements, int index) throws ImagingException - Throws:
ImagingException
-
decodeImageImpl
private static BufferedImage decodeImageImpl(IcnsType imageType, IcnsImageParser.IcnsElement imageElement, IcnsImageParser.IcnsElement[] icnsElements) throws ImagingException - Throws:
ImagingException
-