GifDrawable

open fun GifDrawable(    context: Context,     gifDecoder: GifDecoder,     bitmapPool: BitmapPool,     frameTransformation: Transformation<Bitmap>,     targetFrameWidth: Int,     targetFrameHeight: Int,     firstFrame: Bitmap)

Constructor for GifDrawable.

Deprecated

Use GifDrawable

See also

Parameters

context

A context.

bitmapPool

Ignored, see deprecation note.

frameTransformation

An com.bumptech.glide.load.Transformation that can be applied to each frame.

targetFrameWidth

The desired width of the frames displayed by this drawable (the width of the view or com.bumptech.glide.request.target.Target this drawable is being loaded into).

targetFrameHeight

The desired height of the frames displayed by this drawable (the height of the view or com.bumptech.glide.request.target.Target this drawable is being loaded into).

gifDecoder

The decoder to use to decode GIF data.

firstFrame

The decoded and transformed first frame of this GIF.


open fun GifDrawable(    context: Context,     gifDecoder: GifDecoder,     frameTransformation: Transformation<Bitmap>,     targetFrameWidth: Int,     targetFrameHeight: Int,     firstFrame: Bitmap)

Constructor for GifDrawable.

See also

Parameters

context

A context.

frameTransformation

An com.bumptech.glide.load.Transformation that can be applied to each frame.

targetFrameWidth

The desired width of the frames displayed by this drawable (the width of the view or com.bumptech.glide.request.target.Target this drawable is being loaded into).

targetFrameHeight

The desired height of the frames displayed by this drawable (the height of the view or com.bumptech.glide.request.target.Target this drawable is being loaded into).

gifDecoder

The decoder to use to decode GIF data.

firstFrame

The decoded and transformed first frame of this GIF.