Package org.apache.commons.imaging.formats.tiff.TiffDirectory

Examples of org.apache.commons.imaging.formats.tiff.TiffDirectory.ImageDataElement


        }
    }

    private JpegImageData getJpegRawImageData(final ByteSource byteSource,
            final TiffDirectory directory) throws ImageReadException, IOException {
        final ImageDataElement element = directory.getJpegRawImageDataElement();
        final long offset = element.offset;
        int length = element.length;
        // In case the length is not correct, adjust it and check if the last read byte actually is the end of the image
        if (offset + length > byteSource.getLength()) {
            length = (int) (byteSource.getLength() - offset);
View Full Code Here

TOP

Related Classes of org.apache.commons.imaging.formats.tiff.TiffDirectory.ImageDataElement

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.