# androidx.compose.ui.graphics

Common/AllAndroid/JVM

In this page, you'll find documentation for types, properties, and functions available in the `androidx.compose.ui.graphics` package such as `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`, and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape`.

If you're looking for guidance instead, check out the [Graphics in Compose guide](https://developer.android.com/jetpack/compose/graphics).

## Interfaces

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas` |   | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorProducer` | Alternative to `() -> Color` that's useful for avoiding boxing. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsContext` | Class responsible for providing graphics related dependencies. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope` | A scope which can be used to define the effects to apply for the content, such as scaling (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope#scaleX()`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope#scaleY()`), rotation (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope#rotationX()`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope#rotationY()`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope#rotationZ()`), opacity (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope#alpha()`), shadow (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope#shadowElevation()`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope#shape()`), and clipping (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope#clip()`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope#shape()`). | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` | Graphics object that represents a 2 dimensional array of pixel information represented as ARGB values | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Interpolatable` | Represents an object which may be able to be linearly interpolated with another object. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/MeshGradientScope` | A scope for configuring a mesh gradient. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` |   | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` |   | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathEffect` | Effect applied to the geometry of a drawing primitive. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathIterator` | A path iterator can be used to iterate over all the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment` that make up a path. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathMeasure` |   | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | Defines a generic shape. | Cmn |

## Classes

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/AndroidPaint` | Create a Compose `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` instance backed by an `https://developer.android.com/reference/android/graphics/Paint.html` object to be consumed by Compose applications running on the Android platform | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/AndroidPath` |   | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/AndroidPathMeasure` |   | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode` | Algorithms to use when painting on the canvas. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendModeColorFilter` | Creates a color filter that applies the blend mode given as the second argument. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlurEffect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` that will blur the contents of an optional input `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect`. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush` |   | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/CanvasHolder` | Holder class that is used to issue scoped calls to a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas` from the framework equivalent canvas without having to allocate an object on each draw call | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ClipOp` | Defines how a new clip region should be merged with the existing clip region. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | The `Color` class contains color information to be used while painting in `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter` | Effect used to modify the color of each pixel drawn on a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` that it is installed on | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorMatrix` | 4x5 matrix for transforming the color and alpha components of a source. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorMatrixColorFilter` | Create a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter` that transforms colors through a 4x5 color matrix. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/CompositingStrategy` | Determines when to render the contents of a layer into an offscreen buffer before being drawn to the destination. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/FilterQuality` | Quality levels for image filters. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmapConfig` | Possible ImageBitmap configurations. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets` | Represents the outsets of a layer, which define the extra visual space around the layer's content. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LightingColorFilter` | Create a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter` that can be used to simulate simple lighting effects. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LinearGradient` | Brush implementation used to apply a linear gradient on a given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Matrix` |   | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/MeshGradientPainter` | A MeshGradient is a 2D grid of patches defined by vertices. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/NativeCanvas` | **This class is deprecated.** Use direct reference to platform type instead of typealias | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/NativePaint` | **This class is deprecated.** Use direct reference to platform type instead of typealias | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/OffsetEffect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` used to translate either the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` or the content of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope` it is configured on. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` | Defines a simple shape, used for bounding graphical regions. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Generic` | An area defined as a path. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Rectangle` | Rectangular area. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline.Rounded` | Rectangular area with rounded corners. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PaintingStyle` | Strategies for painting shapes and paths on a canvas. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathFillType` | Determines the winding rule that decides how the interior of a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` is calculated. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathHitTester` | A `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathHitTester` is used to query whether certain x/y coordinates lie inside a given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation` | Strategies for combining paths. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment` | A path segment represents a curve (line, cubic, quadratic or conic) or a command inside a fully formed `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` object. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PixelMap` | Result of a pixel read operation. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PointMode` | Used by `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#drawPoints(androidx.compose.ui.graphics.PointMode,kotlin.collections.List,androidx.compose.ui.graphics.Paint)`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/R` |   | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/R.id` |   | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RadialGradient` | Brush implementation used to apply a radial gradient on a given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` | Intermediate rendering step used to render drawing commands with a corresponding visual effect. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader` | Class that represents the corresponding Shader implementation on a platform. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ShaderBrush` | Brush implementation that wraps and applies a the provided shader to a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` The shader can be lazily created based on a given size, or provided directly as a parameter | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shadow` | A single shadow. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/SolidColor` |   | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StampedPathEffectStyle` | Strategy for transforming each point of the shape along the drawn path | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeCap` | Styles to use for line endings. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/StrokeJoin` | Styles to use for line joins. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/SweepGradient` | Brush implementation used to apply a sweep gradient on a given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode` | Defines what happens at the edge of the gradient. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TransformOrigin` | A two-dimensional position represented as a fraction of the Layer's width and height | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/VertexMode` | Defines how a list of points is interpreted when drawing a set of triangles. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Vertices` | A set of vertex data used by `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#drawVertices(androidx.compose.ui.graphics.Vertices,androidx.compose.ui.graphics.BlendMode,androidx.compose.ui.graphics.Paint)`. | Cmn |

## Objects

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.Companion` |   | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap.Companion` | Provide an empty companion object to hang platform-specific companion extensions onto. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation.Companion` |   | Cmn |

## Annotations

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ExperimentalGraphicsApi` |   | Cmn |

## Enums

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.Direction` | Specifies how closed shapes (e.g. rectangles, ovals) are wound (oriented) when they are added to a path. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathIterator.ConicEvaluation` | Used to define how conic segments are evaluated when iterating over a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` using `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathIterator`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type` | Type of a given segment in a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`, either a command (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Move`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Close`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Done`) or a curve (`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Line`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Cubic`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Quadratic`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Conic`). | Cmn |

## Composables

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/rememberGraphicsLayer.composable` | Create a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/layer/GraphicsLayer` instance that will automatically be released when the Composable is disposed. | Cmn |

## Modifiers

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/graphicsLayer.modifier` | A `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Node` that makes content draw into a draw layer. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/toolingGraphicsLayer.modifier` | A `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.Element` that adds a draw layer such that tooling can identify an element in the drawn image. | Cmn |

## Type aliases

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/NativeCanvas` | **This type alias is deprecated.** Use android.graphics.Canvas directly instead | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/NativePaint` | **This type alias is deprecated.** Use android.graphics.Paint directly instead | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader` | Class that represents the corresponding Shader implementation on a platform. | android |

## Constants summary

|---|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#DefaultAlpha() = 1.0f` Default alpha value used on `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint`. | Cmn |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#DefaultCameraDistance() = 8.0f` Default camera distance for all layers | Cmn |

## Top-level functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlurEffect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#BlurEffect(kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.TileMode)(radiusX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, radiusY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, edgeTreatment: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode)` Create a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#BlurEffect(kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.TileMode)` that implicitly blurs the contents of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope` it is configured on | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Canvas(android.graphics.Canvas)(c: https://developer.android.com/reference/android/graphics/Canvas.html)` | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Canvas(androidx.compose.ui.graphics.ImageBitmap)(image: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap)` Create a new Canvas instance that targets its drawing commands to the provided `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Int)(color: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Int)` instance from an ARGB color int. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Long)(color: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Creates a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Long)` instance from an ARGB color int. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)( red: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 255) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, green: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 255) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, blue: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 255) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, alpha: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 255) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Creates a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` instance from an ARGB color components. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)( red: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, green: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, blue: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, alpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, colorSpace: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace )` Create a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)` by passing individual `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)`, and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)` components. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#CompositeShader(androidx.compose.ui.graphics.Shader,androidx.compose.ui.graphics.Shader,androidx.compose.ui.graphics.BlendMode)(dst: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader, src: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader, blendMode: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode)` Creates a composited result between 2 shaders and the specified BlendMode. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsContext` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#GraphicsContext(android.view.ViewGroup)(layerContainer: https://developer.android.com/reference/android/view/ViewGroup.html)` Create a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#GraphicsContext(android.view.ViewGroup)` with the provided `https://developer.android.com/reference/android/view/ViewGroup.html` to contain `https://developer.android.com/reference/android/view/View.html` based layers. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#GraphicsLayerScope()()` Creates simple `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#GraphicsLayerScope()`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#ImageBitmap(kotlin.Int,kotlin.Int,androidx.compose.ui.graphics.ImageBitmapConfig,kotlin.Boolean,androidx.compose.ui.graphics.colorspace.ColorSpace)( width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, config: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmapConfig, hasAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, colorSpace: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace )` | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#ImageShader(androidx.compose.ui.graphics.ImageBitmap,androidx.compose.ui.graphics.TileMode,androidx.compose.ui.graphics.TileMode)(image: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap, tileModeX: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode, tileModeY: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode)` Creates a Shader using the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` as an input texture. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#LayerOutsets(androidx.compose.ui.unit.Dp)(all: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#LayerOutsets(androidx.compose.ui.unit.Dp)` with the same value for all sides. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/LayerOutsets` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#LayerOutsets(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)(vertical: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, horizontal: https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp)` Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#LayerOutsets(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` where the horizontal value is applied to the left and right, and the vertical value is applied to the top and bottom. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#LinearGradientShader(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.collections.List,kotlin.collections.List,androidx.compose.ui.graphics.TileMode)( from: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, to: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, colors: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>, colorStops: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>?, tileMode: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode )` Creates a linear gradient from `from` to `to`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/OffsetEffect` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#OffsetEffect(kotlin.Float,kotlin.Float)(offsetX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, offsetY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Create an `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#OffsetEffect(kotlin.Float,kotlin.Float)` that implicitly offsets the contents of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope` it is configured on | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Paint()()` | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Path()()` | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathHitTester` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathHitTester(androidx.compose.ui.graphics.Path,kotlin.Float)(path: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path, tolerance: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Creates a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathHitTester(androidx.compose.ui.graphics.Path,kotlin.Float)` to query whether certain x/y coordinates lie inside a given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathIterator` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathIterator(androidx.compose.ui.graphics.Path,androidx.compose.ui.graphics.PathIterator.ConicEvaluation,kotlin.Float)( path: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path, conicEvaluation: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathIterator.ConicEvaluation, tolerance: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` A path iterator can be used to iterate over all the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment` that make up a path. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathMeasure` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathMeasure()()` Create an empty `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathMeasure()` object. | Cmn android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#RadialGradientShader(androidx.compose.ui.geometry.Offset,kotlin.Float,kotlin.collections.List,kotlin.collections.List,androidx.compose.ui.graphics.TileMode)( center: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, radius: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, colors: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>, colorStops: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>?, tileMode: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode )` Creates a radial gradient centered at `center` that ends at `radius` distance from the center. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ShaderBrush` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#ShaderBrush(androidx.compose.ui.graphics.Shader)(shader: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader)` Convenience method to create a ShaderBrush that always returns the same shader instance regardless of size | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#SweepGradientShader(androidx.compose.ui.geometry.Offset,kotlin.collections.List,kotlin.collections.List)( center: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, colors: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>, colorStops: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>? )` Creates a circular gradient that sweeps around a provided center point. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TransformOrigin` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#TransformOrigin(kotlin.Float,kotlin.Float)(pivotFractionX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pivotFractionY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Constructs a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#TransformOrigin(kotlin.Float,kotlin.Float)` from the given fractional values from the Layer's width and height | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#lerp(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Float)( start: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, stop: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, fraction: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html )` Linear interpolate between two `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#lerp(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#lerp(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Float)` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#lerp(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Float)` fraction between the two. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shadow` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#lerp(androidx.compose.ui.graphics.Shadow,androidx.compose.ui.graphics.Shadow,kotlin.Float)(start: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shadow, stop: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shadow, fraction: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Linearly interpolate two `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shadow`s. | Cmn |

## Extension functions summary

|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).addOutline(androidx.compose.ui.graphics.Outline)(outline: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline)` Adds the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).addOutline(androidx.compose.ui.graphics.Outline)` to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).addSvg(kotlin.String)(pathData: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` Adds the specified SVG [path data](https://www.w3.org/TR/SVG2/paths.html#PathData) to this `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`. | Cmn |
| `https://developer.android.com/reference/android/graphics/Bitmap.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.ImageBitmap).asAndroidBitmap()()` | android |
| `https://developer.android.com/reference/android/graphics/ColorFilter.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.ColorFilter).asAndroidColorFilter()()` Obtain a `https://developer.android.com/reference/android/graphics/ColorFilter.html` instance from this `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter` | android |
| `inline https://developer.android.com/reference/android/graphics/Path.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).asAndroidPath()()` | android |
| `https://developer.android.com/reference/android/graphics/PathEffect.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathEffect.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.PathEffect).asAndroidPathEffect()()` | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter` | `https://developer.android.com/reference/android/graphics/ColorFilter.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.ColorFilter).asComposeColorFilter()()` Create a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter` from the given `https://developer.android.com/reference/android/graphics/ColorFilter.html` instance | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` | `https://developer.android.com/reference/android/graphics/Paint.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.Paint).asComposePaint()()` Convert an `https://developer.android.com/reference/android/graphics/Paint.html` instance into a Compose-compatible `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` | `https://developer.android.com/reference/android/graphics/Path.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.Path).asComposePath()()` Convert the `https://developer.android.com/reference/android/graphics/Path.html` instance into a Compose-compatible Path | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` | `https://developer.android.com/reference/android/graphics/RenderEffect.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.RenderEffect).asComposeRenderEffect()()` Convert the `https://developer.android.com/reference/android/graphics/RenderEffect.html` instance into a Compose-compatible `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect` | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` | `https://developer.android.com/reference/android/graphics/Bitmap.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.Bitmap).asImageBitmap()()` Create an `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` from the given `https://developer.android.com/reference/android/graphics/Bitmap.html`. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).compositeOver(androidx.compose.ui.graphics.Color)(background: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)` Composites `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` color on top of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).compositeOver(androidx.compose.ui.graphics.Color)` using the Porter-Duff 'source over' mode. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.Direction` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).computeDirection()()` Computes this `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`'s direction (or winding, or orientation), which can be either `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.Direction#Clockwise` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.Direction#CounterClockwise`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).copy()()` Create a new path, copying the contents from the src path. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(kotlin.ByteArray).decodeToImageBitmap()()` Decodes a byte array of a Bitmap to an ImageBitmap. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).divide(kotlin.collections.MutableList)(contours: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path>)` Divides this path into a list of paths. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Canvas).drawOutline(androidx.compose.ui.graphics.Outline,androidx.compose.ui.graphics.Paint)(outline: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline, paint: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint)` Draws the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` on a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.drawscope.DrawScope).drawOutline(androidx.compose.ui.graphics.Outline,androidx.compose.ui.graphics.Brush,kotlin.Float,androidx.compose.ui.graphics.drawscope.DrawStyle,androidx.compose.ui.graphics.ColorFilter,androidx.compose.ui.graphics.BlendMode)( outline: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline, brush: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush, alpha: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, style: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawStyle, colorFilter: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter?, blendMode: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode )` Draws the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` on a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.drawscope.DrawScope).drawOutline(androidx.compose.ui.graphics.Outline,androidx.compose.ui.graphics.Color,kotlin.Float,androidx.compose.ui.graphics.drawscope.DrawStyle,androidx.compose.ui.graphics.ColorFilter,androidx.compose.ui.graphics.BlendMode)( outline: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline, color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color, alpha: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, style: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawStyle, colorFilter: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter?, blendMode: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode )` Draws the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` on a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope`. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.Companion.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color.Companion).fromColorLong(kotlin.Long)(colorLong: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorLong https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Creates a Color from an Android 64-bit color value. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Matrix.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Matrix).isIdentity()()` Whether the given matrix is the identity matrix. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.BlendMode).isSupported()()` Capability query to determine if the particular platform supports the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.TileMode).isSupported()()` Capability query to determine if the particular platform supports the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode`. | Cmn android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).luminance()()` Returns the relative luminance of this color. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).reverse(androidx.compose.ui.graphics.Path)(destination: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path)` Reverses the segments of this path into the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).reverse(androidx.compose.ui.graphics.Path)`, turning a clockwise path into a counter-clockwise path and vice-versa. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Canvas).rotate(kotlin.Float,kotlin.Float,kotlin.Float)(degrees: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pivotX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pivotY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a rotation (in degrees clockwise) to the current transform at the given pivot point. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Canvas).rotateRad(kotlin.Float,kotlin.Float,kotlin.Float)(radians: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pivotX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pivotY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add a rotation (in radians clockwise) to the current transform at the given pivot point. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Canvas).scale(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)(sx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, sy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pivotX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, pivotY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Add an axis-aligned scale to the current transform, scaling by the first argument in the horizontal direction and the second in the vertical direction at the given pivot coordinate. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Matrix.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Matrix).setFrom(android.graphics.Matrix)(matrix: https://developer.android.com/reference/android/graphics/Matrix.html)` Set the matrix values the native `https://developer.android.com/reference/android/graphics/Matrix.html`. | android |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Matrix.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.Matrix).setFrom(androidx.compose.ui.graphics.Matrix)(matrix: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Matrix)` Set the native `https://developer.android.com/reference/android/graphics/Matrix.html` from `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.Matrix).setFrom(androidx.compose.ui.graphics.Matrix)`. | android |
| `inline https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).takeOrElse(kotlin.Function0)(block: () -> https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color)` If this color `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).isSpecified()` then this is returned, otherwise `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).takeOrElse(kotlin.Function0)` is executed and its result is returned. | Cmn |
| `https://developer.android.com/reference/android/graphics/ColorSpace.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.colorspace.ColorSpace).toAndroidColorSpace()()` Convert the Compose `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace` into an Android framework `https://developer.android.com/reference/android/graphics/ColorSpace.html` | android |
| `https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect.[toAndroidRect](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.geometry.Rect).toAndroidRect())()` **This function is deprecated.** Converting Rect to android.graphics.Rect is lossy, and requires rounding. | android |
| `https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntRect.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.unit.IntRect).toAndroidRect()()` Creates a new instance of `https://developer.android.com/reference/android/graphics/Rect.html` with the same bounds specified in the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntRect` | android |
| `https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.geometry.Rect).toAndroidRectF()()` Creates a new instance of `https://developer.android.com/reference/android/graphics/RectF.html` with the same bounds specified in the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | android |
| `https://developer.android.com/reference/android/graphics/Shader.TileMode.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.TileMode).toAndroidTileMode()()` | android |
| `https://developer.android.com/reference/android/graphics/Canvas.VertexMode.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/VertexMode.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.VertexMode).toAndroidVertexMode()()` | android |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).toArgb()()` Converts this color to an ARGB color int. | Cmn |
| `@https://developer.android.com/reference/kotlin/androidx/annotation/ColorLong https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).toColorLong()()` Converts the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` to a 64-bit `https://developer.android.com/reference/kotlin/androidx/annotation/ColorLong` value that can be used by Android's framework. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/android/graphics/ColorSpace.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.ColorSpace).toComposeColorSpace()()` Convert the `https://developer.android.com/reference/android/graphics/ColorSpace.html` into a Compose `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace` | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntRect` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.Rect).toComposeIntRect()()` Creates a new instance of `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntRect` with the same bounds specified in the given `https://developer.android.com/reference/android/graphics/Rect.html` | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathEffect` | `https://developer.android.com/reference/android/graphics/PathEffect.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.PathEffect).toComposePathEffect()()` | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.Rect).toComposeRect()()` Creates a new instance of `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` with the same bounds specified in the given `https://developer.android.com/reference/android/graphics/Rect.html` | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.RectF).toComposeRect()()` Creates a new instance of `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` with the same bounds specified in the given `https://developer.android.com/reference/android/graphics/RectF.html`. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode` | `https://developer.android.com/reference/android/graphics/Shader.TileMode.html.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.Shader.TileMode).toComposeTileMode()()` | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PixelMap` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.ImageBitmap).toPixelMap(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.IntArray,kotlin.Int,kotlin.Int)( startX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, startY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, buffer: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html, bufferOffset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, stride: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Convenience method to extract pixel information from the given ImageBitmap into a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PixelMap` that supports for querying pixel information based on | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).toSvg(kotlin.Boolean)(asDocument: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Returns an SVG representation of this path. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Canvas).withSave(kotlin.Function0)(block: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Saves a copy of the current transform and clip on the save stack and executes the provided lambda with the current transform applied. | Cmn |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Canvas).withSaveLayer(androidx.compose.ui.geometry.Rect,androidx.compose.ui.graphics.Paint,kotlin.Function0)(bounds: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect, paint: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint, block: () -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Saves a copy of the current transform and clip on the save stack, and then creates a new group which subsequent calls will become a part of. | Cmn |

## Top-level properties summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#CloseSegment()` A `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment` containing the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Close` command. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#DefaultShadowColor()` Default ambient shadow color for all layers. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#DoneSegment()` A `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment` containing the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Done` command. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shape` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#RectangleShape()` A shape describing the rectangle. | Cmn |

## Extension properties summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation.Companion.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.PathOperation.Companion).difference()` **This property is deprecated.** Use PathOperation.Difference instead | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation.Companion.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.PathOperation.Companion).intersect()` **This property is deprecated.** Use PathOperation.Intersect instead | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).isSpecified()` `false` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Unspecified()`. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).isUnspecified()` `true` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Unspecified()`. | Cmn |
| `https://developer.android.com/reference/android/graphics/Canvas.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Canvas).nativeCanvas()` Return an instance of the native primitive that implements the Canvas interface | android |
| `https://developer.android.com/reference/android/graphics/Paint.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Paint).nativePaint()` Convert a Compose `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` instance into an `https://developer.android.com/reference/android/graphics/Paint.html`. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation.Companion.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.PathOperation.Companion).reverseDifference()` **This property is deprecated.** Use PathOperation.ReverseDifference instead | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation.Companion.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.PathOperation.Companion).union()` **This property is deprecated.** Use PathOperation.Union instead | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathOperation.Companion.https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.PathOperation.Companion).xor()` **This property is deprecated.** Use PathOperation.Xor instead | Cmn |

## Constants

### DefaultAlpha

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Paint.kt+symbol:DefaultAlpha) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
const val DefaultAlpha = 1.0f: Float
```

Default alpha value used on `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint`. This value will draw source content fully opaque.

### DefaultCameraDistance

Cmn Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/GraphicsLayerScope.kt+symbol:DefaultCameraDistance) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
const val DefaultCameraDistance = 8.0f: Float
```

Default camera distance for all layers

## Top-level functions

### BlurEffect

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/RenderEffect.kt+function:BlurEffect) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun BlurEffect(
    radiusX: Float,
    radiusY: Float,
    edgeTreatment: TileMode = TileMode.Clamp
): BlurEffect
```

Create a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#BlurEffect(kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.TileMode)` that implicitly blurs the contents of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope` it is configured on

### Canvas

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidCanvas.android.kt+function:Canvas)

```
fun Canvas(c: Canvas): Canvas
```

### Canvas

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Canvas.kt+function:Canvas) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun Canvas(image: ImageBitmap): Canvas
```

Create a new Canvas instance that targets its drawing commands to the provided `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap`

### Color

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Color.kt+function:Color) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun Color(color: @ColorInt Int): Color
```

Creates a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Int)` instance from an ARGB color int. The resulting color is in the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpaces#Srgb()` color space.

| Parameters |
|---|---|
| `color: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The ARGB color int to create a `Color` from. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | A non-null instance of {@link Color} |

### Color

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Color.kt+function:Color) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun Color(color: Long): Color
```

Creates a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Long)` instance from an ARGB color int. The resulting color is in the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpaces#Srgb()` color space. This is useful for specifying colors with alpha greater than 0x80 in numeric form without using `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/to-int.html`:

```kotlin
val color = Color(0xFF000080)
```

| Parameters |
|---|---|
| `color: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The 32-bit ARGB color int to create a `Color` from |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | A non-null instance of {@link Color} |

### Color

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Color.kt+function:Color) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun Color(
    red: @IntRange(from = 0, to = 255) Int,
    green: @IntRange(from = 0, to = 255) Int,
    blue: @IntRange(from = 0, to = 255) Int,
    alpha: @IntRange(from = 0, to = 255) Int = 255
): Color
```

Creates a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` instance from an ARGB color components. The resulting color is in the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpaces#Srgb()` color space. The default alpha value is `0xFF` (opaque).

| Parameters |
|---|---|
| `red: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 255) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The red component of the color, between 0 and 255. |
| `green: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 255) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The green component of the color, between 0 and 255. |
| `blue: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 255) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The blue component of the color, between 0 and 255. |
| `alpha: @https://developer.android.com/reference/kotlin/androidx/annotation/IntRange(from = 0, to = 255) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 255` | The alpha component of the color, between 0 and 255. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | A non-null instance of {@link Color} |

### Color

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Color.kt+function:Color) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun Color(
    red: Float,
    green: Float,
    blue: Float,
    alpha: Float = 1.0f,
    colorSpace: ColorSpace = ColorSpaces.Srgb
): Color
```

Create a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)` by passing individual `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)`, and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)` components. The default `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace` is `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpaces#Srgb()` and the default `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)` is `1.0` (opaque).

If the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)`, or `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)` values are outside of the range defined by `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)` (see `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace#getMinValue(kotlin.Int)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace#getMaxValue(kotlin.Int)`, these values get clamped appropriately to be within range.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | If `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)` does not have `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace#componentCount()` equal to 3. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | If `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#Color(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,androidx.compose.ui.graphics.colorspace.ColorSpace)` has an `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace#id()` set to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace.Companion#MinId()`. |

### CompositeShader

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Shader.kt+function:CompositeShader)

```
fun CompositeShader(dst: Shader, src: Shader, blendMode: BlendMode): Shader
```

Creates a composited result between 2 shaders and the specified BlendMode. The specified destination and source Shader inputs will be consumed as the source and destination images for the corresponding blending algorithm.

| Parameters |
|---|---|
| `dst: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader` | Shader used as the destination content |
| `src: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shader` | Shader used as the source content |
| `blendMode: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode` | BlendMode used to composite the source against the destination shader |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode` |   |

### GraphicsContext

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidGraphicsContext.android.kt+function:GraphicsContext)

```
fun GraphicsContext(layerContainer: ViewGroup): GraphicsContext
```

Create a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#GraphicsContext(android.view.ViewGroup)` with the provided `https://developer.android.com/reference/android/view/ViewGroup.html` to contain `https://developer.android.com/reference/android/view/View.html` based layers.

| Parameters |
|---|---|
| `layerContainer: https://developer.android.com/reference/android/view/ViewGroup.html` | `https://developer.android.com/reference/android/view/ViewGroup.html` used to contain `https://developer.android.com/reference/android/view/View.html` based layers that are created by the returned `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#GraphicsContext(android.view.ViewGroup)` |

### GraphicsLayerScope

Cmn Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/GraphicsLayerScope.kt+function:GraphicsLayerScope) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun GraphicsLayerScope(): GraphicsLayerScope
```

Creates simple `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#GraphicsLayerScope()`.

### ImageBitmap

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/ImageBitmap.kt+function:ImageBitmap) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun ImageBitmap(
    width: Int,
    height: Int,
    config: ImageBitmapConfig = ImageBitmapConfig.Argb8888,
    hasAlpha: Boolean = true,
    colorSpace: ColorSpace = ColorSpaces.Srgb
): ImageBitmap
```

### ImageShader

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Shader.kt+function:ImageShader) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun ImageShader(
    image: ImageBitmap,
    tileModeX: TileMode = TileMode.Clamp,
    tileModeY: TileMode = TileMode.Clamp
): Shader
```

Creates a Shader using the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` as an input texture. If the shader is to be drawn in an area larger than the size of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap`, the region is filled in the horizontal and vertical directions based on the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#ImageShader(androidx.compose.ui.graphics.ImageBitmap,androidx.compose.ui.graphics.TileMode,androidx.compose.ui.graphics.TileMode)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#ImageShader(androidx.compose.ui.graphics.ImageBitmap,androidx.compose.ui.graphics.TileMode,androidx.compose.ui.graphics.TileMode)` parameters.

### LayerOutsets

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/LayerOutsets.kt+function:LayerOutsets) Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.12.0)

```
fun LayerOutsets(all: Dp): LayerOutsets
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#LayerOutsets(androidx.compose.ui.unit.Dp)` with the same value for all sides.

### LayerOutsets

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/LayerOutsets.kt+function:LayerOutsets) Added in [1.12.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.12.0)

```
fun LayerOutsets(vertical: Dp, horizontal: Dp): LayerOutsets
```

Creates a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#LayerOutsets(androidx.compose.ui.unit.Dp,androidx.compose.ui.unit.Dp)` where the horizontal value is applied to the left and right, and the vertical value is applied to the top and bottom.

### LinearGradientShader

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Shader.kt+function:LinearGradientShader) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun LinearGradientShader(
    from: Offset,
    to: Offset,
    colors: List<Color>,
    colorStops: List<Float>? = null,
    tileMode: TileMode = TileMode.Clamp
): Shader
```

Creates a linear gradient from `from` to `to`.

If `colorStops` is provided, each value is a number from 0.0 to 1.0 that specifies where the color at the corresponding index in `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#LinearGradientShader(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.collections.List,kotlin.collections.List,androidx.compose.ui.graphics.TileMode)` begins in the gradient. If `colorStops` is not provided, then the colors are dispersed evenly

The behavior before `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#LinearGradientShader(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.collections.List,kotlin.collections.List,androidx.compose.ui.graphics.TileMode)` and after `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#LinearGradientShader(androidx.compose.ui.geometry.Offset,androidx.compose.ui.geometry.Offset,kotlin.collections.List,kotlin.collections.List,androidx.compose.ui.graphics.TileMode)` is described by the `tileMode` argument. For details, see the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode` enum. If no `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode` is provided the default value of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode#Clamp()` is used

### OffsetEffect

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/RenderEffect.kt+function:OffsetEffect) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
fun OffsetEffect(offsetX: Float, offsetY: Float): OffsetEffect
```

Create an `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#OffsetEffect(kotlin.Float,kotlin.Float)` that implicitly offsets the contents of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/GraphicsLayerScope` it is configured on

### Paint

Cmn android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/+function:Paint) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.1.0)

```
fun Paint(): Paint
```

### Path

Cmn android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/+function:Path)

```
fun Path(): Path
```

### PathHitTester

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathHitTester.kt+function:PathHitTester) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun PathHitTester(path: Path, tolerance: @FloatRange(from = 0.0) Float = 0.5f): PathHitTester
```

Creates a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathHitTester(androidx.compose.ui.graphics.Path,kotlin.Float)` to query whether certain x/y coordinates lie inside a given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`. A `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathHitTester(androidx.compose.ui.graphics.Path,kotlin.Float)` is optimized to perform multiple queries against a single path.

The result of a query depends on the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path#fillType()` of the path.

If the content of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathHitTester(androidx.compose.ui.graphics.Path,kotlin.Float)` changes, you must call `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathHitTester#updatePath(androidx.compose.ui.graphics.Path,kotlin.Float)` or create a new `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathHitTester(androidx.compose.ui.graphics.Path,kotlin.Float)` as `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathHitTester(androidx.compose.ui.graphics.Path,kotlin.Float)` will cache precomputed values to speed up queries.

If `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathHitTester(androidx.compose.ui.graphics.Path,kotlin.Float)` contains conic curves, they are converted to quadratic curves during the query process. The tolerance of that conversion is defined by `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathHitTester(androidx.compose.ui.graphics.Path,kotlin.Float)`. The tolerance should be appropriate to the coordinate systems used by the caller. For instance if the path is defined in pixels, 0.5 (half a pixel) or 1.0 (a pixel) are appropriate tolerances. If the path is normalized and defined in the domain 0..1, the caller should choose a more appropriate tolerance close to or equal to one "query unit". The tolerance must be \>= 0.

| Parameters |
|---|---|
| `path: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` to run queries against. |
| `tolerance: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 0.5f` | When `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathHitTester(androidx.compose.ui.graphics.Path,kotlin.Float)` contains conic curves, defines the maximum distance between the original conic curve and its quadratic approximations. Set to 0.5 by default. |

### PathIterator

Cmn android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/+function:PathIterator)

```
fun PathIterator(
    path: Path,
    conicEvaluation: PathIterator.ConicEvaluation = ConicEvaluation.AsQuadratics,
    tolerance: Float = 0.25f
): PathIterator
```

A path iterator can be used to iterate over all the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment` that make up a path. Those segments may in turn define multiple contours inside the path. Conic segments are by default evaluated as approximated quadratic segments. To preserve conic segments as conics, set `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathIterator(androidx.compose.ui.graphics.Path,androidx.compose.ui.graphics.PathIterator.ConicEvaluation,kotlin.Float)` to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathIterator.ConicEvaluation#AsConic`. The error of the approximation is controlled by `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathIterator(androidx.compose.ui.graphics.Path,androidx.compose.ui.graphics.PathIterator.ConicEvaluation,kotlin.Float)`.

A `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathIterator(androidx.compose.ui.graphics.Path,androidx.compose.ui.graphics.PathIterator.ConicEvaluation,kotlin.Float)` can be created implicitly through a given `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` object: using one of the two `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path#iterator()` functions.

| Parameters |
|---|---|
| `path: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` | The `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` to iterate over |
| `conicEvaluation: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathIterator.ConicEvaluation = ConicEvaluation.AsQuadratics` | Indicates how to evaluate conic segments |
| `tolerance: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 0.25f` | When `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathIterator(androidx.compose.ui.graphics.Path,androidx.compose.ui.graphics.PathIterator.ConicEvaluation,kotlin.Float)` is set to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathIterator.ConicEvaluation#AsQuadratics` defines the maximum distance between the original conic curve and its quadratic approximations |

### PathMeasure

Cmn android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/+function:PathMeasure)

```
fun PathMeasure(): PathMeasure
```

Create an empty `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#PathMeasure()` object. To uses this to measure the length of a path, and/or to find the position and tangent along it, call `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathMeasure#setPath(androidx.compose.ui.graphics.Path,kotlin.Boolean)`. Note that once a path is associated with the measure object, it is undefined if the path is subsequently modified and the measure object is used. If the path is modified, you must call `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathMeasure#setPath(androidx.compose.ui.graphics.Path,kotlin.Boolean)` with the path.

### RadialGradientShader

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Shader.kt+function:RadialGradientShader) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun RadialGradientShader(
    center: Offset,
    radius: Float,
    colors: List<Color>,
    colorStops: List<Float>? = null,
    tileMode: TileMode = TileMode.Clamp
): Shader
```

Creates a radial gradient centered at `center` that ends at `radius` distance from the center.

If `colorStops` is provided, each value is a number from 0.0 to 1.0 that specifies where the color at the corresponding index in `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#RadialGradientShader(androidx.compose.ui.geometry.Offset,kotlin.Float,kotlin.collections.List,kotlin.collections.List,androidx.compose.ui.graphics.TileMode)` begins in the gradient. If `colorStops` is not provided, then the colors are dispersed evenly

The behavior before and after the radius is described by the `tileMode` argument. For details, see the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode` enum.

The behavior outside of the bounds of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#RadialGradientShader(androidx.compose.ui.geometry.Offset,kotlin.Float,kotlin.collections.List,kotlin.collections.List,androidx.compose.ui.graphics.TileMode)` +/- `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#RadialGradientShader(androidx.compose.ui.geometry.Offset,kotlin.Float,kotlin.collections.List,kotlin.collections.List,androidx.compose.ui.graphics.TileMode)` is described by the `tileMode` argument. For details, see the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode` enum. If no `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode` is provided the default value of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode#Clamp()` is used

### ShaderBrush

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Brush.kt+function:ShaderBrush)

```
fun ShaderBrush(shader: Shader): ShaderBrush
```

Convenience method to create a ShaderBrush that always returns the same shader instance regardless of size

### SweepGradientShader

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Shader.kt+function:SweepGradientShader) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun SweepGradientShader(
    center: Offset,
    colors: List<Color>,
    colorStops: List<Float>? = null
): Shader
```

Creates a circular gradient that sweeps around a provided center point. The sweep begins relative to 3 o'clock and continues clockwise until it reaches the starting position again.

If `colorStops` is provided, each value is a number from 0.0 to 1.0 that specifies where the color at the corresponding index in `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#SweepGradientShader(androidx.compose.ui.geometry.Offset,kotlin.collections.List,kotlin.collections.List)` begins in the gradient. If `colorStops` is not provided, then the colors are dispersed evenly

| Parameters |
|---|---|
| `center: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | Position for the gradient to sweep around |
| `colors: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color>` | Colors to be rendered as part of the gradient |
| `colorStops: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html>? = null` | Placement of the colors along the sweep about the center position |

### TransformOrigin

Cmn Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/TransformOrigin.kt+function:TransformOrigin) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun TransformOrigin(pivotFractionX: Float, pivotFractionY: Float): TransformOrigin
```

Constructs a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#TransformOrigin(kotlin.Float,kotlin.Float)` from the given fractional values from the Layer's width and height

### lerp

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Color.kt+function:lerp) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun lerp(
    start: Color,
    stop: Color,
    fraction: @FloatRange(from = 0.0, to = 1.0) Float
): Color
```

Linear interpolate between two `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#lerp(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#lerp(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Float)` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#lerp(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Float)` fraction between the two. The `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace` of the result is always the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#colorSpace()` of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#lerp(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Float)`. `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#lerp(androidx.compose.ui.graphics.Color,androidx.compose.ui.graphics.Color,kotlin.Float)` should be between 0 and 1, inclusive. Interpolation is done in the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpaces#Oklab()` color space.

### lerp

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Shadow.kt+function:lerp) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun lerp(start: Shadow, stop: Shadow, fraction: Float): Shadow
```

Linearly interpolate two `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shadow`s.

## Extension functions

### Path.addOutline

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Outline.kt+function:addOutline) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun Path.addOutline(outline: Outline): Unit
```

Adds the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).addOutline(androidx.compose.ui.graphics.Outline)` to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`.

### Path.addSvg

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathSvg.kt+function:addSvg) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun Path.addSvg(pathData: String): Unit
```

Adds the specified SVG [path data](https://www.w3.org/TR/SVG2/paths.html#PathData) to this `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`. The SVG path data encodes a series of instructions that will be applied to this path. For instance, the following path data:

`M200,300 Q400,50 600,300 L1000,300`

Will generate the following series of instructions for this path:

```kotlin
moveTo(200f, 300f)
quadraticTo(400f, 50f, 600f, 300f)
lineTo(1000f, 300f)
```

To convert a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` to its SVG path data representation, please refer to `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).toSvg(kotlin.Boolean)`.

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the path data contains an invalid instruction |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).toSvg(kotlin.Boolean)` |   |

### ImageBitmap.asAndroidBitmap

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidImageBitmap.android.kt+function:asAndroidBitmap)

```
fun ImageBitmap.asAndroidBitmap(): Bitmap
```

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unsupported-operation-exception/index.html` | if this `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` is not backed by an android.graphics.Bitmap |

### ColorFilter.asAndroidColorFilter

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidColorFilter.android.kt+function:asAndroidColorFilter)

```
fun ColorFilter.asAndroidColorFilter(): ColorFilter
```

Obtain a `https://developer.android.com/reference/android/graphics/ColorFilter.html` instance from this `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter`

### Path.asAndroidPath

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidPath.android.kt+function:asAndroidPath)

```
inline fun Path.asAndroidPath(): Path
```

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unsupported-operation-exception/index.html` | if this Path is not backed by an `https://developer.android.com/reference/android/graphics/Path.html`. |

### PathEffect.asAndroidPathEffect

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidPathEffect.android.kt+function:asAndroidPathEffect)

```
fun PathEffect.asAndroidPathEffect(): PathEffect
```

### ColorFilter.asComposeColorFilter

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidColorFilter.android.kt+function:asComposeColorFilter)

```
fun ColorFilter.asComposeColorFilter(): ColorFilter
```

Create a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter` from the given `https://developer.android.com/reference/android/graphics/ColorFilter.html` instance

### Paint.asComposePaint

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidPaint.android.kt+function:asComposePaint)

```
fun Paint.asComposePaint(): Paint
```

Convert an `https://developer.android.com/reference/android/graphics/Paint.html` instance into a Compose-compatible `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint`

### Path.asComposePath

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidPath.android.kt+function:asComposePath)

```
fun Path.asComposePath(): Path
```

Convert the `https://developer.android.com/reference/android/graphics/Path.html` instance into a Compose-compatible Path

### RenderEffect.asComposeRenderEffect

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidRenderEffect.android.kt+function:asComposeRenderEffect)

```
fun RenderEffect.asComposeRenderEffect(): RenderEffect
```

Convert the `https://developer.android.com/reference/android/graphics/RenderEffect.html` instance into a Compose-compatible `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/RenderEffect`

### Bitmap.asImageBitmap

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidImageBitmap.android.kt+function:asImageBitmap)

```
fun Bitmap.asImageBitmap(): ImageBitmap
```

Create an `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` from the given `https://developer.android.com/reference/android/graphics/Bitmap.html`. Note this does not create a copy of the original `https://developer.android.com/reference/android/graphics/Bitmap.html` and changes to it will modify the returned `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap`

### Color.compositeOver

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Color.kt+function:compositeOver) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun Color.compositeOver(background: Color): Color
```

Composites `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` color on top of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).compositeOver(androidx.compose.ui.graphics.Color)` using the Porter-Duff 'source over' mode.

Both `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).compositeOver(androidx.compose.ui.graphics.Color)` must not be pre-multiplied, and the resulting color will also not be pre-multiplied.

The `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace` of the result is always the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#colorSpace()` of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).compositeOver(androidx.compose.ui.graphics.Color)`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` representing `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` composited on top of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).compositeOver(androidx.compose.ui.graphics.Color)`, converted to the color space of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).compositeOver(androidx.compose.ui.graphics.Color)`. |

### Path.computeDirection

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathGeometry.kt+function:computeDirection) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun Path.computeDirection(): Path.Direction
```

Computes this `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`'s direction (or winding, or orientation), which can be either `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.Direction#Clockwise` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.Direction#CounterClockwise`.

If the path is made of multiple contours (the path contains multiple "move" commands), the direction returned by this property is the direction of the first contour.

If the path is empty (contains no lines/curves), the direction is `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.Direction#Clockwise`.

If the path has no area (single straight line), the direction is `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path.Direction#Clockwise`.

Calling this property does not cache the result, the direction is computed Calling this method does not cache the result, the direction is computed every time the method is called.

If you need to query the direction of individual contours, you should `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).divide(kotlin.collections.MutableList)` the path first.

### Path.copy

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Path.kt+function:copy) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun Path.copy(): Path
```

Create a new path, copying the contents from the src path.

### ByteArray.decodeToImageBitmap

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/ImageBitmap.kt+function:decodeToImageBitmap) Added in [1.8.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.8.0)

```
fun ByteArray.decodeToImageBitmap(): ImageBitmap
```

Decodes a byte array of a Bitmap to an ImageBitmap.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` | The converted ImageBitmap. |

### Path.divide

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathGeometry.kt+function:divide) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun Path.divide(contours: MutableList<Path> = mutableListOf()): MutableList<Path>
```

Divides this path into a list of paths. Each contour inside this path is returned as a separate `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`. For instance the following code snippet creates two rectangular contours:

```kotlin
val p = Path()
p.addRect(...)
p.addRect(...)

val contours = p.divide()
```

The list returned by calling `p.divide()` will contain two `Path` instances, each representing one of the two rectangles.

Empty contours (contours with no lines/curves) are omitted from the resulting list.

| Parameters |
|---|---|
| `contours: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path> = mutableListOf()` | An optional mutable list of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` that will hold the result of the division. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html<https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path>` | A list of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` representing all the contours in this path. The returned list is either a newly allocated list if the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).divide(kotlin.collections.MutableList)` parameter was left unspecified, or the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).divide(kotlin.collections.MutableList)` parameter. |

### Canvas.drawOutline

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Outline.kt+function:drawOutline) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun Canvas.drawOutline(outline: Outline, paint: Paint): Unit
```

Draws the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` on a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas`.

| Parameters |
|---|---|
| `outline: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` | the outline to draw. |
| `paint: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` | the paint used for the drawing. |

### DrawScope.drawOutline

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Outline.kt+function:drawOutline) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun DrawScope.drawOutline(
    outline: Outline,
    brush: Brush,
    alpha: @FloatRange(from = 0.0, to = 1.0) Float = 1.0f,
    style: DrawStyle = Fill,
    colorFilter: ColorFilter? = null,
    blendMode: BlendMode = DrawScope.DefaultBlendMode
): Unit
```

Draws the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` on a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope`.

| Parameters |
|---|---|
| `outline: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` | the outline to draw. |
| `brush: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush` | Brush applied to the outline when it is drawn |
| `alpha: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0f` | Opacity to be applied to outline from 0.0f to 1.0f representing fully transparent to fully opaque respectively |
| `style: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawStyle = Fill` | Specifies whether the outline is stroked or filled in |
| `colorFilter: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter? = null` | : ColorFilter to apply to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Brush` when drawn into the destination |
| `blendMode: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode = DrawScope.DefaultBlendMode` | : Blending algorithm to be applied to the outline |

### DrawScope.drawOutline

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Outline.kt+function:drawOutline) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun DrawScope.drawOutline(
    outline: Outline,
    color: Color,
    alpha: @FloatRange(from = 0.0, to = 1.0) Float = 1.0f,
    style: DrawStyle = Fill,
    colorFilter: ColorFilter? = null,
    blendMode: BlendMode = DrawScope.DefaultBlendMode
): Unit
```

Draws the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` on a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawScope`.

| Parameters |
|---|---|
| `outline: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Outline` | the outline to draw. |
| `color: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` | Color applied to the outline when it is drawn |
| `alpha: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0.0, to = 1.0) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 1.0f` | Opacity to be applied to outline from 0.0f to 1.0f representing fully transparent to fully opaque respectively |
| `style: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/drawscope/DrawStyle = Fill` | Specifies whether the outline is stroked or filled in |
| `colorFilter: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ColorFilter? = null` | : ColorFilter to apply to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.drawscope.DrawScope).drawOutline(androidx.compose.ui.graphics.Outline,androidx.compose.ui.graphics.Color,kotlin.Float,androidx.compose.ui.graphics.drawscope.DrawStyle,androidx.compose.ui.graphics.ColorFilter,androidx.compose.ui.graphics.BlendMode)` when drawn into the destination |
| `blendMode: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode = DrawScope.DefaultBlendMode` | : Blending algorithm to be applied to the outline |

### Color.Companion.fromColorLong

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidColor.android.kt+function:fromColorLong)

```
fun Color.Companion.fromColorLong(colorLong: @ColorLong Long): Color
```

Creates a Color from an Android 64-bit color value. This differs from the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` constructor accepting a `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` in that the constructor assumes the incoming value is a 32-bit ARGB color, while this is a 64-bit `https://developer.android.com/reference/kotlin/androidx/annotation/ColorLong` color from Android. `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#value()` isn't fully compatible with Android's 64-bit `https://developer.android.com/reference/kotlin/androidx/annotation/ColorLong` values as some color spaces differ, so this method handles the conversion.

### Matrix.isIdentity

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Matrix.kt+function:isIdentity) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun Matrix.isIdentity(): Boolean
```

Whether the given matrix is the identity matrix.

### BlendMode.isSupported

Cmn android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/+function:isSupported)

```
fun BlendMode.isSupported(): Boolean
```

Capability query to determine if the particular platform supports the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode`. Not all platforms support all blend mode algorithms, however, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode#SrcOver()` is guaranteed to be supported as it is the default drawing algorithm. If a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode` that is not supported is used, the default of SrcOver is consumed instead.

### TileMode.isSupported

Cmn android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/+function:isSupported)

```
fun TileMode.isSupported(): Boolean
```

Capability query to determine if the particular platform supports the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode`. Not all platforms support all tile mode algorithms, however, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode#Clamp()`, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode#Repeated()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode#Mirror()` are guaranteed to be supported. If a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode` that is not supported is used, the default of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/TileMode#Clamp()` is consumed instead.

### Color.luminance

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Color.kt+function:luminance) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun Color.luminance(): Float
```

Returns the relative luminance of this color.

Based on the formula for relative luminance defined in WCAG 2.0, W3C Recommendation 11 December 2008.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | A value between 0 (darkest black) and 1 (lightest white) |

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | If the this color's color space does not use the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorModel#Rgb()` color model |

### Path.reverse

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathGeometry.kt+function:reverse) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun Path.reverse(destination: Path = Path()): Path
```

Reverses the segments of this path into the specified `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).reverse(androidx.compose.ui.graphics.Path)`, turning a clockwise path into a counter-clockwise path and vice-versa. Each contour in the path is reversed independently, and the contours appear in the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).reverse(androidx.compose.ui.graphics.Path)` in reverse order.

This method preserves the general structure of this path as much as possible:

- Lines become lines

- Quadratic Bézier curves become quadratic Bézier curves

- Cubic Bézier curves become cubic Bézier curves

- Close and move commands remain close and move commands

- Conic segments become quadratic Bézier curves

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` | A `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` containing the reverse of this `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path`. The returned path is either a newly allocated `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Path` if the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).reverse(androidx.compose.ui.graphics.Path)` parameter was left unspecified, or the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).reverse(androidx.compose.ui.graphics.Path)` parameter. |

### Canvas.rotate

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Canvas.kt+function:rotate) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun Canvas.rotate(degrees: Float, pivotX: Float, pivotY: Float): Unit
```

Add a rotation (in degrees clockwise) to the current transform at the given pivot point. The pivot coordinate remains unchanged by the rotation transformation

| Parameters |
|---|---|
| `degrees: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | to rotate clockwise |
| `pivotX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x-coord for the pivot point |
| `pivotY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y-coord for the pivot point |

### Canvas.rotateRad

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Canvas.kt+function:rotateRad) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun Canvas.rotateRad(radians: Float, pivotX: Float = 0.0f, pivotY: Float = 0.0f): Unit
```

Add a rotation (in radians clockwise) to the current transform at the given pivot point. The pivot coordinate remains unchanged by the rotation transformation

| Parameters |
|---|---|
| `radians: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Rotation transform to apply to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas` |
| `pivotX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 0.0f` | The x-coord for the pivot point |
| `pivotY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 0.0f` | The y-coord for the pivot point |

### Canvas.scale

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Canvas.kt+function:scale) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun Canvas.scale(sx: Float, sy: Float = sx, pivotX: Float, pivotY: Float): Unit
```

Add an axis-aligned scale to the current transform, scaling by the first argument in the horizontal direction and the second in the vertical direction at the given pivot coordinate. The pivot coordinate remains unchanged by the scale transformation.

If `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Canvas).scale(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)` is unspecified, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Canvas).scale(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float)` will be used for the scale in both directions.

| Parameters |
|---|---|
| `sx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The amount to scale in X |
| `sy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = sx` | The amount to scale in Y |
| `pivotX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The x-coord for the pivot point |
| `pivotY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The y-coord for the pivot point |

### Matrix.setFrom

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidMatrixConversions.android.kt+function:setFrom)

```
fun Matrix.setFrom(matrix: Matrix): Unit
```

Set the matrix values the native `https://developer.android.com/reference/android/graphics/Matrix.html`.

### Matrix.setFrom

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidMatrixConversions.android.kt+function:setFrom)

```
fun Matrix.setFrom(matrix: Matrix): Unit
```

Set the native `https://developer.android.com/reference/android/graphics/Matrix.html` from `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(android.graphics.Matrix).setFrom(androidx.compose.ui.graphics.Matrix)`.

### Color.takeOrElse

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Color.kt+function:takeOrElse) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
inline fun Color.takeOrElse(block: () -> Color): Color
```

If this color `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).isSpecified()` then this is returned, otherwise `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Color).takeOrElse(kotlin.Function0)` is executed and its result is returned.

### ColorSpace.toAndroidColorSpace

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidColorSpace.android.kt+function:toAndroidColorSpace)

```
@RequiresApi(value = 26)
fun ColorSpace.toAndroidColorSpace(): ColorSpace
```

Convert the Compose `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace` into an Android framework `https://developer.android.com/reference/android/graphics/ColorSpace.html`

### Rect.toAndroidRect

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/RectHelper.android.kt+function:toAndroidRect)

```
fun Rect.[toAndroidRect](https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.geometry.Rect).toAndroidRect())(): Rect
```

> [!CAUTION]
> **This function is deprecated.**   
> Converting Rect to android.graphics.Rect is lossy, and requires rounding. The behavior of toAndroidRect() truncates to an integral Rect, but you should choose the method of rounding most suitable for your use case, use this instead:
>
> ```kotlin
> android.graphics.Rect(left.toInt(), top.toInt(), right.toInt(), bottom.toInt())
> ```

Creates a new instance of `https://developer.android.com/reference/android/graphics/Rect.html` with the same bounds specified in the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect`

### IntRect.toAndroidRect

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/RectHelper.android.kt+function:toAndroidRect)

```
fun IntRect.toAndroidRect(): Rect
```

Creates a new instance of `https://developer.android.com/reference/android/graphics/Rect.html` with the same bounds specified in the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntRect`

### Rect.toAndroidRectF

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/RectHelper.android.kt+function:toAndroidRectF)

```
fun Rect.toAndroidRectF(): RectF
```

Creates a new instance of `https://developer.android.com/reference/android/graphics/RectF.html` with the same bounds specified in the given `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect`

### TileMode.toAndroidTileMode

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidTileMode.android.kt+function:toAndroidTileMode)

```
fun TileMode.toAndroidTileMode(): Shader.TileMode
```

### VertexMode.toAndroidVertexMode

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidVertexMode.android.kt+function:toAndroidVertexMode)

```
fun VertexMode.toAndroidVertexMode(): Canvas.VertexMode
```

### Color.toArgb

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Color.kt+function:toArgb) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.10.0)

```
fun Color.toArgb(): @ColorInt Int
```

Converts this color to an ARGB color int. A color int is always in the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpaces#Srgb()` color space. This implies a color space conversion is applied if needed.

| Returns |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | An ARGB color in the sRGB color space |

### Color.toColorLong

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidColor.android.kt+function:toColorLong)

```
fun Color.toColorLong(): @ColorLong Long
```

Converts the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color` to a 64-bit `https://developer.android.com/reference/kotlin/androidx/annotation/ColorLong` value that can be used by Android's framework. `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#value()` isn't fully compatible with Android's 64-bit `https://developer.android.com/reference/kotlin/androidx/annotation/ColorLong` values as some color spaces differ, so this method handles the conversion. Color spaces that are not supported by the current Android API level will safely fallback to the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpaces#Srgb()` color space.

### ColorSpace.toComposeColorSpace

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidColorSpace.android.kt+function:toComposeColorSpace)

```
@RequiresApi(value = 26)
fun ColorSpace.toComposeColorSpace(): ColorSpace
```

Convert the `https://developer.android.com/reference/android/graphics/ColorSpace.html` into a Compose `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/colorspace/ColorSpace`

### Rect.toComposeIntRect

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/RectHelper.android.kt+function:toComposeIntRect)

```
fun Rect.toComposeIntRect(): IntRect
```

Creates a new instance of `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/IntRect` with the same bounds specified in the given `https://developer.android.com/reference/android/graphics/Rect.html`

### PathEffect.toComposePathEffect

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidPathEffect.android.kt+function:toComposePathEffect)

```
fun PathEffect.toComposePathEffect(): PathEffect
```

### Rect.toComposeRect

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/RectHelper.android.kt+function:toComposeRect)

```
fun Rect.toComposeRect(): Rect
```

Creates a new instance of `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` with the same bounds specified in the given `https://developer.android.com/reference/android/graphics/Rect.html`

### RectF.toComposeRect

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/RectHelper.android.kt+function:toComposeRect)

```
fun RectF.toComposeRect(): Rect
```

Creates a new instance of `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` with the same bounds specified in the given `https://developer.android.com/reference/android/graphics/RectF.html`.

### Shader.TileMode.toComposeTileMode

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidTileMode.android.kt+function:toComposeTileMode)

```
fun Shader.TileMode.toComposeTileMode(): TileMode
```

### ImageBitmap.toPixelMap

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/ImageBitmap.kt+function:toPixelMap) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
fun ImageBitmap.toPixelMap(
    startX: Int = 0,
    startY: Int = 0,
    width: Int = this.width,
    height: Int = this.height,
    buffer: IntArray = IntArray(width * height),
    bufferOffset: Int = 0,
    stride: Int = width
): PixelMap
```

Convenience method to extract pixel information from the given ImageBitmap into a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PixelMap` that supports for querying pixel information based on

Note this method can block so it is recommended to not invoke this method in performance critical code paths

```kotlin
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.ImageBitmap
import androidx.compose.ui.graphics.PixelMap
import androidx.compose.ui.graphics.toPixelMap

val imageBitmap = createImageBitmap()

// Sample a 3 by 2 subsection of the given ImageBitmap
// starting at the coordinate (48, 49)
val pixelmap = imageBitmap.toPixelMap(startX = 48, startY = 49, width = 3, height = 2)

// create a histogram to count the number of occurrences of a color within the specified
// subsection of the provided ImageBitmap
val histogram = HashMap<Color, Int>()
for (x in 0 until pixelmap.width) {
    for (y in 0 until pixelmap.height) {
        val color = pixelmap[x, y]
        val colorCount = histogram[color] ?: 0
        histogram[color] = (colorCount + 1)
    }
}
```

| Parameters |
|---|---|
| `startX: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The x-coordinate of the first pixel to read from the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` |
| `startY: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The y-coordinate of the first pixel to read from the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap` |
| `width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = this.width` | The number of pixels to read from each row |
| `height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = this.height` | The number of rows to read |
| `buffer: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html = IntArray(width * height)` | The array to store the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap`'s colors. By default this allocates an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` large enough to store all the pixel information. Consumers of this API are advised to use the smallest `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int-array/index.html` necessary to extract relevant pixel information |
| `bufferOffset: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = 0` | The first index to write into the buffer array, this defaults to 0 |
| `stride: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html = width` | The number of entries in `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.ImageBitmap).toPixelMap(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.IntArray,kotlin.Int,kotlin.Int)` to skip between rows (must be \>= `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.ImageBitmap).toPixelMap(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.IntArray,kotlin.Int,kotlin.Int)` |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/ImageBitmap#readPixels(kotlin.IntArray,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int)` |   |

### Path.toSvg

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathSvg.kt+function:toSvg) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
fun Path.toSvg(asDocument: Boolean = false): String
```

Returns an SVG representation of this path. The caller can choose whether the returned SVG represents a fully-formed SVG document or only the [path data](https://www.w3.org/TR/SVG2/paths.html#PathData). By default, only the path data is returned which can be used either with `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).addSvg(kotlin.String)` or `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathParser`.

| Parameters |
|---|---|
| `asDocument: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = false` | When set to true, this function returns a fully-formed SVG document, otherwise returns only the path data. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/vector/PathParser` |   |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/package-summary#(androidx.compose.ui.graphics.Path).addSvg(kotlin.String)` |   |

### Canvas.withSave

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Canvas.kt+function:withSave) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
inline fun Canvas.withSave(block: () -> Unit): Unit
```

Saves a copy of the current transform and clip on the save stack and executes the provided lambda with the current transform applied. Once the lambda has been executed, the transformation is popped from the stack, undoing the transformation.

See also:

`https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#saveLayer(androidx.compose.ui.geometry.Rect,androidx.compose.ui.graphics.Paint)`, which does the same thing but additionally also groups the commands

### Canvas.withSaveLayer

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Canvas.kt+function:withSaveLayer) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
inline fun Canvas.withSaveLayer(bounds: Rect, paint: Paint, block: () -> Unit): Unit
```

Saves a copy of the current transform and clip on the save stack, and then creates a new group which subsequent calls will become a part of. When the lambda is executed and the save stack is popped, the group will be flattened into a layer and have the given `paint`'s `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint#colorFilter()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint#blendMode()` applied.

This lets you create composite effects, for example making a group of drawing commands semi-transparent. Without using `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#saveLayer(androidx.compose.ui.geometry.Rect,androidx.compose.ui.graphics.Paint)`, each part of the group would be painted individually, so where they overlap would be darker than where they do not. By using `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#saveLayer(androidx.compose.ui.geometry.Rect,androidx.compose.ui.graphics.Paint)` to group them together, they can be drawn with an opaque color at first, and then the entire group can be made transparent using the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#saveLayer(androidx.compose.ui.geometry.Rect,androidx.compose.ui.graphics.Paint)`'s paint.

## Using saveLayer with clips

When a rectangular clip operation (from `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#clipRect(androidx.compose.ui.geometry.Rect,androidx.compose.ui.graphics.ClipOp)`) is not axis-aligned with the raster buffer, or when the clip operation is not rectalinear (e.g. because it is a rounded rectangle clip created by `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#clipPath(androidx.compose.ui.graphics.Path,androidx.compose.ui.graphics.ClipOp)`), the edge of the clip needs to be anti-aliased.

If two draw calls overlap at the edge of such a clipped region, without using `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#saveLayer(androidx.compose.ui.geometry.Rect,androidx.compose.ui.graphics.Paint)`, the first drawing will be anti-aliased with the background first, and then the second will be anti-aliased with the result of blending the first drawing and the background. On the other hand, if `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#saveLayer(androidx.compose.ui.geometry.Rect,androidx.compose.ui.graphics.Paint)` is used immediately after establishing the clip, the second drawing will cover the first in the layer, and thus the second alone will be anti-aliased with the background when the layer is clipped and composited (when lambda is finished executing).

## Performance considerations

Generally speaking, `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#saveLayer(androidx.compose.ui.geometry.Rect,androidx.compose.ui.graphics.Paint)` is relatively expensive.

There are a several different hardware architectures for GPUs (graphics processing units, the hardware that handles graphics), but most of them involve batching commands and reordering them for performance. When layers are used, they cause the rendering pipeline to have to switch render target (from one layer to another). Render target switches can flush the GPU's command buffer, which typically means that optimizations that one could get with larger batching are lost. Render target switches also generate a lot of memory churn because the GPU needs to copy out the current frame buffer contents from the part of memory that's optimized for writing, and then needs to copy it back in once the previous render target (layer) is restored.

See also:

- `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#save()`, which saves the current state, but does not create a new layer for subsequent commands.

- `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/BlendMode`, which discusses the use of `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint#blendMode()` with `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Canvas#saveLayer(androidx.compose.ui.geometry.Rect,androidx.compose.ui.graphics.Paint)`.

## Top-level properties

### CloseSegment

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathSegment.kt+symbol:CloseSegment) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
val CloseSegment: PathSegment
```

A `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment` containing the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Close` command. This static object exists to avoid allocating a new segment when returning a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Close` result from `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathIterator#next(kotlin.FloatArray,kotlin.Int)`.

### DefaultShadowColor

Cmn Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/GraphicsLayerScope.kt+symbol:DefaultShadowColor) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.2.0)

```
val DefaultShadowColor: Color
```

Default ambient shadow color for all layers.

### DoneSegment

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathSegment.kt+symbol:DoneSegment) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.7.0)

```
val DoneSegment: PathSegment
```

A `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment` containing the `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Done` command. This static object exists to avoid allocating a new segment when returning a `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathSegment.Type#Done` result from `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/PathIterator#next(kotlin.FloatArray,kotlin.Int)`.

### RectangleShape

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/RectangleShape.kt+symbol:RectangleShape) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val RectangleShape: Shape
```

A shape describing the rectangle.

## Extension properties

### PathOperation.Companion.difference

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathOperation.kt+symbol:difference) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val PathOperation.Companion.difference: PathOperation
```

> [!CAUTION]
> **This property is deprecated.**   
> Use PathOperation.Difference instead, use this instead:
>
> ```kotlin
> PathOperation.Difference
> ```

### PathOperation.Companion.intersect

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathOperation.kt+symbol:intersect) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val PathOperation.Companion.intersect: PathOperation
```

> [!CAUTION]
> **This property is deprecated.**   
> Use PathOperation.Intersect instead, use this instead:
>
> ```kotlin
> PathOperation.Intersect
> ```

### Color.isSpecified

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Color.kt+symbol:isSpecified)

```
val Color.isSpecified: Boolean
```

`false` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Unspecified()`.

### Color.isUnspecified

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/Color.kt+symbol:isUnspecified)

```
val Color.isUnspecified: Boolean
```

`true` when this is `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color#Unspecified()`.

### Canvas.nativeCanvas

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidCanvas.android.kt+symbol:nativeCanvas)

```
val Canvas.nativeCanvas: Canvas
```

Return an instance of the native primitive that implements the Canvas interface

### Paint.nativePaint

android Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/AndroidPaint.android.kt+symbol:nativePaint)

```
val Paint.nativePaint: Paint
```

Convert a Compose `https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Paint` instance into an `https://developer.android.com/reference/android/graphics/Paint.html`.

### PathOperation.Companion.reverseDifference

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathOperation.kt+symbol:reverseDifference) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val PathOperation.Companion.reverseDifference: PathOperation
```

> [!CAUTION]
> **This property is deprecated.**   
> Use PathOperation.ReverseDifference instead, use this instead:
>
> ```kotlin
> PathOperation.ReverseDifference
> ```

### PathOperation.Companion.union

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathOperation.kt+symbol:union) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val PathOperation.Companion.union: PathOperation
```

> [!CAUTION]
> **This property is deprecated.**   
> Use PathOperation.Union instead, use this instead:
>
> ```kotlin
> PathOperation.Union
> ```

### PathOperation.Companion.xor

Cmn Artifact: [androidx.compose.ui:ui-graphics](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/graphics/PathOperation.kt+symbol:xor) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Deprecated in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val PathOperation.Companion.xor: PathOperation
```

> [!CAUTION]
> **This property is deprecated.**   
> Use PathOperation.Xor instead, use this instead:
>
> ```kotlin
> PathOperation.Xor
> ```