androidx.compose.ui.graphics.painter

BitmapPainter

Class · from org.jetbrains.compose.ui:ui-graphics:1.12.2

No hand-written docs yet.

Painter implementation used to draw an ImageBitmap into the provided canvas This implementation can handle applying alpha and ColorFilter to it's drawn result

class BitmapPainter(
    image: ImageBitmap,
    srcOffset: IntOffset = IntOffset.Zero,
    srcSize: IntSize = IntSize(image.width, image.height),
) : Painter

Is a

How to get one

Create it

Library docs

Painter implementation used to draw an ImageBitmap into the provided canvas This implementation can handle applying alpha and ColorFilter to it's drawn result