更新时间:2023-01-19 15:20:30
将文件转换为位图的方式
Convert the file to bitmap by
Bitmap bi = BitmapFactory.decode(filepath + "DSC00021.jpg");
You can specify options too, look at API documentation
或者如果您想将元数据从一个文件交换到另一个文件,则 sanselan 可能是***选择.当您处理图像(例如调整大小)时,这将非常有用.
Or if you want to exchange the meta data from one file to another, sanselan will probably be the best choice. This would be much helpful when you manipulating the image, for example re-size.
示例代码会指引您正确的方向.
The sample code will guide you in a right direction.