BitmapPainter
Function
Common
fun BitmapPainter(
    image: ImageBitmap,
    srcOffset: IntOffset = IntOffset.Zero,
    srcSize: IntSize = IntSize(image.width, image.height),
    filterQuality: FilterQuality = FilterQuality.Low,
): BitmapPainter
Painter implementation used to draw an ImageBitmap into the provided canvas This
implementation can handle applying alpha and ColorFilter to it's drawn result
- Left and top bounds must be greater than or equal to zero
- Source size must be greater than zero
- Source size must be less than or equal to the dimensions of image
Parameters
| image | The ImageBitmapto draw | 
| srcOffset | Optional offset relative to imageused to draw a subsection of theImageBitmap. By default this uses the origin ofimage | 
| srcSize | Optional dimensions representing size of the subsection of imageto draw Both the offset and size must have the following requirements: | 
| filterQuality | Sampling algorithm applied to the imagewhen it is scaled and drawn into the destination. The default isFilterQuality.Lowwhich scales using a bilinear sampling algorithm | 
