class BitmapFactoryUtils
static fun checkIsJpegResource(resourceID: int): boolean
Check if the resource is a jpeg file, by looking at the file_extension |
|
static fun checkIsPngResource(resourceID: int): boolean
Check if the resource is a jpeg file, by looking at the file_extension |
|
static fun checkIsSvgResource(resourceID: int): boolean
Check if the raw resource is a svg file, by looking at the file_extension |
|
static fun checkIsXMLResource(resourceID: int): boolean
Check if the resource is a xml file, by looking at the file_extension |
|
static fun checkResourceType(resourceID: int, vararg suffixs: java.lang.String): boolean
Check if the resource is a jpeg file, by looking at the file_extension |
|
static fun decodeFile(filename: java.lang.String, minSize: int, square: boolean): Bitmap static fun decodeFile(filename: java.lang.String, minSize: int, square: boolean, fixRotation: boolean): Bitmap
Decode a image file into a Bitmap. |
|
static fun decodeResource(res: Resources, resId: int, minSize: int): Bitmap static fun decodeResource(res: Resources, resId: int): Bitmap
Decode a drawable or a raw image resource. |
|
static fun decodeSize(res: Resources, resId: int): kotlin.Array<int> static fun decodeSize(stream: java.io.InputStream): kotlin.Array<int> static fun decodeSize(filename: java.lang.String): kotlin.Array<float> |
|
static fun decodeStream(stream: java.io.InputStream, minSize: int): Bitmap
Decode a drawable or a raw image resource. |
|
static fun drawResource(res: Resources, resId: int, width: int, height: int): Bitmap static fun drawResource(res: Resources, resId: int): Bitmap
Draw a XML Drawable resource to a Bitmap because a XML Drawable not can be decoded by #decodeResource |
|
static fun getImageRotation(fileStream: java.io.InputStream): int static fun getImageRotation(filename: java.lang.String): int
Get the orientation of the image file base on the exif information. |
|
static fun preloadResource(res: Resources, resId: int): void |
memoryFileHashMap |
|
NOTHING_BITMAP |
|
NOTING_BITMAP |