public class LazyImageFactoryByBitmap extends java.lang.Object implements LazyImageFactory
Constructor and Description |
---|
LazyImageFactoryByBitmap() |
Modifier and Type | Method and Description |
---|---|
BaseLazyImage |
create(byte[] imgBytes)
创建并打开对象
|
BaseLazyImage |
create(java.io.File file,
java.lang.String md5)
用本地图像文件创建对象
|
<T> BaseLazyImage |
create(T src)
多源创建对象
|
public LazyImageFactoryByBitmap()
public BaseLazyImage create(byte[] imgBytes) throws NotImageException, UnsupportedFormatException
LazyImageFactory
create
in interface LazyImageFactory
NotImageException
UnsupportedFormatException
public BaseLazyImage create(java.io.File file, java.lang.String md5) throws NotImageException, UnsupportedFormatException
LazyImageFactory
create
in interface LazyImageFactory
md5
- file
的MD5较验码,可以为nullNotImageException
UnsupportedFormatException
public <T> BaseLazyImage create(T src) throws NotImageException, UnsupportedFormatException
LazyImageFactory
create
in interface LazyImageFactory
NotImageException
UnsupportedFormatException
Copyright © 2019. All rights reserved.