decode
Returns a Bitmap decoded from the given InputStream that is rotated to match any EXIF data present in the stream and that is downsampled according to the given dimensions and any provided com.bumptech.glide.load.resource.bitmap.DownsampleStrategy option.
See also
Identical to decode, except that it accepts a in place of an InputStream.
Returns a Bitmap decoded from the given InputStream that is rotated to match any EXIF data present in the stream and that is downsampled according to the given dimensions and any provided com.bumptech.glide.load.resource.bitmap.DownsampleStrategy option.
If a Bitmap is present in the whose dimensions exactly match those of the image for the given InputStream is available, the operation is much less expensive in terms of memory.
Return
A new bitmap containing the image from the given InputStream, or recycle if recycle is not null.
Parameters
An InputStream to the data for the image.
The width the final image should be close to.
The height the final image should be close to.
A set of options that may contain one or more supported options that influence how a Bitmap will be decoded from the given stream.
A set of callbacks allowing callers to optionally respond to various significant events during the decode process.