Canvas
interface Canvas
androidx.compose.ui.graphics.Canvas |
Summary
Public methods | |
---|---|
abstract Unit |
Reduces the clip region to the intersection of the current clip and the given Path. |
open Unit |
Reduces the clip region to the intersection of the current clip and the given rectangle. |
abstract Unit |
Reduces the clip region to the intersection of the current clip and the given bounds. |
abstract Unit |
Multiply the current transform by the specified 4⨉4 transformation matrix specified as a list of values in column-major order. |
abstract Unit |
disableZ() Disables Z support, preventing any layers drawn after this point from being visually reordered or having shadows rendered. |
open Unit |
Draw an arc scaled to fit inside the given rectangle. |
abstract Unit |
drawArc(left: Float, top: Float, right: Float, bottom: Float, startAngle: Float, sweepAngle: Float, useCenter: Boolean, paint: Paint) Draw an arc scaled to fit inside the given rectangle. |
open Unit |
drawArcRad(rect: Rect, startAngleRad: Float, sweepAngleRad: Float, useCenter: Boolean, paint: Paint) Draw an arc scaled to fit inside the given rectangle. |
abstract Unit |
drawCircle(center: Offset, radius: Float, paint: Paint) Draws a circle centered at the point given by the first argument and that has the radius given by the second argument, with the Paint given in the third argument. |
abstract Unit |
drawImage(image: ImageBitmap, topLeftOffset: Offset, paint: Paint) Draws the given ImageBitmap into the canvas with its top-left corner at the given Offset. |
abstract Unit |
drawImageRect(image: ImageBitmap, srcOffset: IntOffset = IntOffset.Zero, srcSize: IntSize = IntSize(image.width, image.height), dstOffset: IntOffset = IntOffset.Zero, dstSize: IntSize = srcSize, paint: Paint) Draws the subset of the given image described by the |
abstract Unit |
Draws a line between the given points using the given paint. |
open Unit |
Draws an axis-aligned oval that fills the given axis-aligned rectangle with the given Paint. |
abstract Unit |
Draws an axis-aligned oval that fills the given bounds provided with the given Paint. |
abstract Unit | |
abstract Unit |
drawPoints(pointMode: PointMode, points: List<Offset>, paint: Paint) Draws a sequence of points according to the given PointMode. |
abstract Unit |
drawRawPoints(pointMode: PointMode, points: FloatArray, paint: Paint) Draws a sequence of points according to the given PointMode. |
open Unit |
Draws a rectangle with the given Paint. |
abstract Unit |
Draws a rectangle with the given Paint. |
abstract Unit |
drawRoundRect(left: Float, top: Float, right: Float, bottom: Float, radiusX: Float, radiusY: Float, paint: Paint) Draws a rounded rectangle with the given Paint. |
abstract Unit |
drawVertices(vertices: Vertices, |