Package com.drew.metadata.jpeg

Examples of com.drew.metadata.jpeg.JpegDirectory.containsTag()


        try{
            JpegDirectory meta = (JpegDirectory)
                (new JpegReader(f)).extract().getDirectory(JpegDirectory.class);
            if(
                meta != null &&
                meta.containsTag(JpegDirectory.TAG_JPEG_IMAGE_HEIGHT) &&
                meta.containsTag(JpegDirectory.TAG_JPEG_IMAGE_WIDTH)
            ){
                int height = meta.getInt(JpegDirectory.TAG_JPEG_IMAGE_HEIGHT);
                int width =  meta.getInt(JpegDirectory.TAG_JPEG_IMAGE_WIDTH);
                result = new Dimension(width, height);
View Full Code Here


            JpegDirectory meta = (JpegDirectory)
                (new JpegReader(f)).extract().getDirectory(JpegDirectory.class);
            if(
                meta != null &&
                meta.containsTag(JpegDirectory.TAG_JPEG_IMAGE_HEIGHT) &&
                meta.containsTag(JpegDirectory.TAG_JPEG_IMAGE_WIDTH)
            ){
                int height = meta.getInt(JpegDirectory.TAG_JPEG_IMAGE_HEIGHT);
                int width =  meta.getInt(JpegDirectory.TAG_JPEG_IMAGE_WIDTH);
                result = new Dimension(width, height);
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.