Package com.lightcrafts.image.metadata.values

Examples of com.lightcrafts.image.metadata.values.LongMetaValue


                reader.readDirectory( subdirOffset, 0, tempDir );
                //
                // Now pluck out the tags' values we're interested in and
                // insert them (and only them) into the Nikon directory.
                //
                final LongMetaValue offsetValue =
                    (LongMetaValue)tempDir.getValue(
                        EXIF_JPEG_INTERCHANGE_FORMAT
                    );
                final LongMetaValue lengthValue =
                    (LongMetaValue)tempDir.getValue(
                        EXIF_JPEG_INTERCHANGE_FORMAT_LENGTH
                    );
                if ( offsetValue == null || lengthValue == null )
                    return true;
                final int offset = offsetValue.getIntValue();
                final int length = lengthValue.getIntValue();
                if ( offset <= 0 || length <= 0 )
                    return true;
                final ImageMetadataDirectory nikonDir =
                    imageInfo.getCurrentMetadata().getDirectoryFor(
                        NikonDirectory.class, true
View Full Code Here

TOP

Related Classes of com.lightcrafts.image.metadata.values.LongMetaValue

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.