ResourceBitmapDecoder
Decodes Bitmaps from resource ids.
The framework will decode some resources as Drawables that do not wrap s. This decoder will attempt to return a Bitmap for those Drawables anyway by drawing the Drawable to a Canvass using the Drawable's intrinsic bounds or the dimensions provided to decode.
For non-BitmapDrawables that return <= 0
for getIntrinsicWidth and/or getIntrinsicHeight, this decoder will fail if the width and height provided to decode are SIZE_ORIGINAL.
Constructors
Link copied to clipboard
open fun ResourceBitmapDecoder(drawableDecoder: ResourceDrawableDecoder, bitmapPool: BitmapPool)
Content copied to clipboard