Bitmap

constructor(bitmap: Bitmap, src: Rect? = null, dst: Rect? = null)

Parameters

bitmap

The source bitmap to be rendered by the created LithoRenderEffect

src

Optional subset of the bitmap to be part of the rendered output. If null is provided, the entire bitmap bounds are used.

dst

Bounds of the destination which the bitmap is translated and scaled to be drawn into within the bounds of the android.graphics.RenderNode this LithoRenderEffect is installed on

See RenderEffect.createBitmapEffect