MediaMetadataRetriever.BitmapParams
public
static
final
class
MediaMetadataRetriever.BitmapParams
extends Object
java.lang.Object | |
↳ | android.media.MediaMetadataRetriever.BitmapParams |
Summary
Public constructors | |
---|---|
BitmapParams()
Create a default BitmapParams object. |
Public methods | |
---|---|
Bitmap.Config
|
getActualConfig()
Get the actual bitmap config used to decode the bitmap after the decoding. |
Bitmap.Config
|
getPreferredConfig()
Retrieve the preferred bitmap config in the params. |
void
|
setPreferredConfig(Bitmap.Config config)
Set the preferred bitmap config for the decoder to decode into. |
Inherited methods | |
---|---|
Public constructors
BitmapParams
public BitmapParams ()
Create a default BitmapParams object. By default, it uses Bitmap.Config.ARGB_8888
as the preferred bitmap config.
Public methods
getActualConfig
public Bitmap.Config getActualConfig ()
Get the actual bitmap config used to decode the bitmap after the decoding.
Returns | |
---|---|
Bitmap.Config |
the actual bitmap config used.
This value cannot be null . |
getPreferredConfig
public Bitmap.Config getPreferredConfig ()
Retrieve the preferred bitmap config in the params.
Returns | |
---|---|
Bitmap.Config |
the preferred bitmap config.
This value cannot be null . |
setPreferredConfig
public void setPreferredConfig (Bitmap.Config config)
Set the preferred bitmap config for the decoder to decode into.
If not set, or the request cannot be met, the decoder will output
in Bitmap.Config.ARGB_8888
config by default.
After decode, the actual config used can be retrieved by getActualConfig()
.
Parameters | |
---|---|
config |
Bitmap.Config : the preferred bitmap config to use.
This value cannot be null . |