本文实例讲述了Android开发之使用ExifInterface获取拍照后的图片属性。分享给大家供大家参考,具体如下:
ExifInterface exif = new ExifInterface(file.getPath());String widthStr = exif.getAttribute(ExifInterface.TAG_IMAGE_WIDTH);String heightStr = exif.getAttribute(ExifInterface.TAG_IMAGE_LENGTH);....../* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://mitChangesNative(String fileName); private native byte[] getThumbnailNative(String fileName);}更多关于Android开发相关内容感兴趣的读者可查看本站专题:《Android开发入门与进阶教程》及《Android图形与图像处理技巧总结》
希望本文所述对大家Android程序设计有所帮助。