open class BitmapFactoryUtils
static var memoryFileHashMap: SparseArray! |
|
static val NOTHING_BITMAP: Bitmap! |
open static fun checkIsJpegResource(resourceID: Int): Boolean
Check if the resource is a jpeg file, by looking at the file_extension |
|
open static fun checkIsPngResource(resourceID: Int): Boolean
Check if the resource is a jpeg file, by looking at the file_extension |
|
open static fun checkIsSvgResource(resourceID: Int): Boolean
Check if the raw resource is a svg file, by looking at the file_extension |
|
open static fun checkIsXMLResource(resourceID: Int): Boolean
Check if the resource is a xml file, by looking at the file_extension |
|
open static fun checkResourceType(resourceID: Int, vararg suffixs: String!): Boolean
Check if the resource is a jpeg file, by looking at the file_extension |
|
open static fun decodeFile(filename: String!, minSize: Int, square: Boolean): Bitmap! open static fun decodeFile(filename: String!, minSize: Int, square: Boolean, fixRotation: Boolean): Bitmap!
Decode a image file into a Bitmap. |
|
open static fun decodeResource(res: Resources!, resId: Int, minSize: Int): Bitmap! open static fun decodeResource(res: Resources!, resId: Int): Bitmap!
Decode a drawable or a raw image resource. |
|
open static fun decodeSize(res: Resources!, resId: Int): IntArray! open static fun decodeSize(stream: InputStream!): IntArray! open static fun decodeSize(filename: String!): FloatArray! |
|
open static fun decodeStream(stream: InputStream!, minSize: Int): Bitmap!
Decode a drawable or a raw image resource. |
|
open static fun drawResource(res: Resources!, resId: Int, width: Int, height: Int): Bitmap! open 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 |
|
open static fun getImageRotation(fileStream: InputStream!): Int open static fun getImageRotation(filename: String!): Int
Get the orientation of the image file base on the exif information. |
|
open static fun preloadResource(res: Resources!, resId: Int): Unit |