ImageInfo
class ImageInfo
kotlin.Any | |
↳ | android.graphics.ImageDecoder.ImageInfo |
Information about an encoded image.
Summary
Public methods | |
---|---|
open ColorSpace? |
If known, the color space the decoded bitmap will have. |
open String |
The mimeType of the image. |
open Size |
getSize() Size of the image, without scaling or cropping. |
open Boolean |
Whether the image is animated. |
Public methods
getColorSpace
open fun getColorSpace(): ColorSpace?
If known, the color space the decoded bitmap will have. Note that the output color space is not guaranteed to be the color space the bitmap is encoded with. If not known (when the config is Bitmap.Config.ALPHA_8
for instance), or there is an error, it is set to null.
getMimeType
open fun getMimeType(): String
The mimeType of the image.
Return | |
---|---|
String |
This value cannot be null . |
getSize
open fun getSize(): Size
Size of the image, without scaling or cropping.
Return | |
---|---|
Size |
This value cannot be null . |
isAnimated
open fun isAnimated(): Boolean
Whether the image is animated.
If true
, #decodeDrawable will return an AnimatedImageDrawable
.