# Print output for @column tags ?> ImageDecoder.ImageInfo - Android SDK | Android Developers

Most visited


Recently visited


ImageDecoder.ImageInfo

public static class ImageDecoder.ImageInfo
extends Object

java.lang.Object
   ↳ android.graphics.ImageDecoder.ImageInfo


Information about an encoded image.

Summary


Public methods

ColorSpace getColorSpace()

If known, the color space the decoded bitmap will have.

String getMimeType()

The mimeType of the image.

Size getSize()

Size of the image, without scaling or cropping.

boolean isAnimated()

Whether the image is animated.

Inherited methods

Public methods


getColorSpace

public ColorSpace getColorSpace ()

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.

Returns
ColorSpace

getMimeType

public String getMimeType ()

The mimeType of the image.

Returns
String This value cannot be null.

getSize

public Size getSize ()

Size of the image, without scaling or cropping.

Returns
Size This value cannot be null.

isAnimated

public boolean isAnimated ()

Whether the image is animated.

If true, decodeDrawable will return an AnimatedImageDrawable.

Returns
boolean

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.