{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

androidx.compose.ui.graphics

Annotations

ExperimentalGraphicsApi

Interfaces

Canvas
ColorProducer

Alternative to () -> Color that's useful for avoiding boxing.

GraphicsLayerScope

A scope which can be used to define the effects to apply for the content, such as scaling (scaleX, scaleY), rotation (rotationX, rotationY, rotationZ), opacity (alpha), shadow (shadowElevation, shape), and clipping (clip, shape).

ImageBitmap

Graphics object that represents a 2 dimensional array of pixel information represented as ARGB values

Paint
Path
PathEffect

Effect applied to the geometry of a drawing primitive.

PathMeasure
Shape

Defines a generic shape.

Classes

AndroidCanvasKt
AndroidColorFilterKt
AndroidColorSpaceKt
AndroidImageBitmapKt
AndroidMatrixConversionsKt
AndroidPaint

Create a Compose Paint instance backed by an android.graphics.Paint object to be consumed by Compose applications running on the Android platform

AndroidPaintKt
AndroidPath
AndroidPathEffectKt
AndroidPathKt
AndroidPathMeasure
AndroidRenderEffectKt
AndroidTileModeKt
AndroidVertexModeKt
BlendMode

Algorithms to use when painting on the canvas.

BlendModeKt
BlurEffect

RenderEffect that will blur the contents of an optional input RenderEffect.

Brush
BrushKt
CanvasHolder

Holder class that is used to issue scoped calls to a Canvas from the framework equivalent canvas without having to allocate an object on each draw call

CanvasKt
ClipOp

Defines how a new clip region should be merged with the existing clip region.

Color

The Color class contains color information to be used while painting in Canvas.

ColorFilter

Effect used to modify the color of each pixel drawn on a Paint that it is installed on

ColorKt
ColorMatrix

4x5 matrix for transforming the color and alpha components of a source.

CompositingStrategy

Determines when to render the contents of a layer into an offscreen buffer before being drawn to the destination.

FilterQuality

Quality levels for image filters.

GraphicsLayerModifierKt
GraphicsLayerScopeKt
ImageBitmapConfig

Possible ImageBitmap configurations.

ImageBitmapKt
LinearGradient

Brush implementation used to apply a linear gradient on a given Paint

Matrix
MatrixKt
NativeCanvas
NativeColorFilter
NativePaint
OffsetEffect

RenderEffect used to translate either the given RenderEffect or the content of the GraphicsLayerScope it is configured on.

Outline

Defines a simple shape, used for bounding graphical regions.

Outline.Generic

An area defined as a path.

Outline.Rectangle

Rectangular area.

Outline.Rounded

Rectangular area with rounded corners.

OutlineKt
PaintKt
PaintingStyle

Strategies for painting shapes and paths on a canvas.

PathFillType

Determines the winding rule that decides how the interior of a Path is calculated.

PathKt
PathMeasureKt
PathOperation

Strategies for combining paths.

PathOperationKt
PixelMap

Result of a pixel read operation.

PointMode

Used by Canvas.drawPoints.

RadialGradient

Brush implementation used to apply a radial gradient on a given Paint

RectHelperKt
RectangleShapeKt
RenderEffect

Intermediate rendering step used to render drawing commands with a corresponding visual effect.

RenderEffectKt
Shader

Class that represents the corresponding Shader implementation on a platform.

ShaderBrush

Brush implementation that wraps and applies a the provided shader to a Paint The shader can be lazily created based on a given size, or provided directly as a parameter

ShaderKt
Shadow

A single shadow.

ShadowKt
SolidColor
StampedPathEffectStyle

Strategy for transforming each point of the shape along the drawn path

StrokeCap

Styles to use for line endings.

StrokeJoin

Styles to use for line joins.

SweepGradient

Brush implementation used to apply a sweep gradient on a given Paint

TileMode

Defines what happens at the edge of the gradient.

TileModeKt
TransformOrigin

A two-dimensional position represented as a fraction of the Layer's width and height

TransformOriginKt
VertexMode

Defines how a list of points is interpreted when drawing a set of triangles.

Vertices

A set of vertex data used by Canvas.drawVertices.

BlendMode.Companion
Brush.Companion
ClipOp.Companion
Color.Companion
ColorFilter.Companion
CompositingStrategy.Companion
FilterQuality.Companion
ImageBitmap.Companion

Provide an empty companion object to hang platform-specific companion extensions onto.

ImageBitmapConfig.Companion
PaintingStyle.Companion
Path.Companion
PathEffect.Companion
PathFillType.Companion
PathOperation.Companion
PointMode.Companion
Shadow.Companion
StampedPathEffectStyle.Companion
StrokeCap.Companion
StrokeJoin.Companion
TileMode.Companion
TransformOrigin.Companion
VertexMode.Companion