BitmapExtractor

public final 类 BitmapExtractor

用于从 MlImage 中提取 Bitmap 的实用程序。

目前,它仅支持将 MlImageMlImage.STORAGE_TYPE_BITMAP 搭配使用,否则会抛出 IllegalArgumentException

公共方法

静态位图
ExtractMlImage 图片)
MlImage 中提取 Bitmap

继承的方法

布尔值
equals(Object arg0)
final Class<?>
getClass()
整型
hashCode()
最终无效
notify()
最终无效
notifyAll()
字符串
toString()
最终无效
wait(long arg0, int arg1)
最终无效
wait(long arg0)
最终无效
wait()

公共方法

public static Bitmap 提取 MlImage 图片)

MlImage 中提取 Bitmap

注意:image 的属性(例如旋转)不会生效。

参数
图片 要从中提取 Bitmap 的图片。
返回
抛出
IllegalArgumentException 提取要求进行不支持的格式或数据类型转换时触发。