-
adapt
Performs the chromatic adaptation of a color space from its native white point to the specified white point.
-
addOutline
Adds the outline to the Path.
-
addSvg
Adds the specified SVG path data to this Path.
- asAndroidBitmap
-
asAndroidColorFilter
Obtain a [android.
- asAndroidPath
- asAndroidPathEffect
-
asComposeColorFilter
Create a ColorFilter from the given [android.
-
asComposePaint
Convert an [android.
-
asComposePath
Convert the [android.
-
asComposeRenderEffect
Convert the [android.
-
asImageBitmap
Create an ImageBitmap from the given Bitmap.
-
BitmapPainter
Painter implementation used to draw an ImageBitmap into the provided canvas This implementation can handle applying alpha and ColorFilter to it's drawn result
-
BlurEffect
Create a BlurEffect that implicitly blurs the contents of the GraphicsLayerScope it is configured on
-
Canvas
Create a new Canvas instance that targets its drawing commands to the provided ImageBitmap
-
clipPath
Reduces the clip region to the intersection of the current clip and the given path.
-
clipRect
Reduces the clip region to the intersection of the current clip and the given rectangle indicated by the given left, top, right and bottom bounds.
-
Color
Create a Color by passing individual red, green, blue, alpha, and colorSpace components.
-
compositeOver
Composites this color on top of background using the Porter-Duff 'source over' mode.
-
CompositeShader
Creates a composited result between 2 shaders and the specified BlendMode.
-
computeDirection
Computes this Path's direction (or winding, or orientation), which can be either [Path.
-
connect
Connects two color spaces to allow conversion from the source color space to the destination color space.
-
copy
Create a new path, copying the contents from the src path.
-
decodeToImageBitmap
Decodes a byte array of a Bitmap to an ImageBitmap.
-
divide
Divides this path into a list of paths.
- draw
-
drawIntoCanvas
Provides access to draw directly with the underlying Canvas.
-
drawLayer
Draw the provided GraphicsLayer into the current DrawScope.
-
drawOutline
Draws the Outline on a DrawScope.
-
fromColorLong
Creates a Color from an Android 64-bit color value.
-
GraphicsContext
Create a new GraphicsContext with the provided ViewGroup to contain View based layers.
- ImageBitmap
-
ImageShader
Creates a Shader using the given ImageBitmap as an input texture.
-
inset
Convenience method modifies the DrawTransform bounds to inset both left and right bounds by horizontal as well as the top and bottom by vertical.
-
isIdentity
Whether the given matrix is the identity matrix.
-
isSupported
Capability query to determine if the particular platform supports the TileMode.
-
lerp
Linearly interpolate between two Shadows.
-
LinearGradientShader
Creates a linear gradient from `from` to `to`.
-
luminance
Returns the relative luminance of this color.
-
OffsetEffect
Create an OffsetEffect that implicitly offsets the contents of the GraphicsLayerScope it is configured on
- Paint
- Path
-
PathHitTester
Creates a new PathHitTester to query whether certain x/y coordinates lie inside a given Path.
-
PathIterator
A path iterator can be used to iterate over all the segmentsPathSegment that make up a path.
-
PathMeasure
Create an empty PathMeasure object.
-
RadialGradientShader
Creates a radial gradient centered at `center` that ends at `radius` distance from the center.
-
reverse
Reverses the segments of this path into the specified destination, turning a clockwise path into a counter-clockwise path and vice-versa.
-
rotate
Add a rotation (in degrees clockwise) to the current transform at the given pivot point.
-
rotateRad
Add a rotation (in radians clockwise) to the current transform at the given pivot point.
-
scale
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 coordinat…
-
setFrom
Set the matrix values the native [android.
-
setOutline
Configures an outline for this GraphicsLayer based on the provided Outline object.
-
ShaderBrush
Convenience method to create a ShaderBrush that always returns the same shader instance regardless of size
-
ShadowContext
Create a new ShadowContext
-
SweepGradientShader
Creates a circular gradient that sweeps around a provided center point.
-
takeOrElse
If this color isSpecified then this is returned, otherwise block is executed and its result is returned.
-
toAndroidColorSpace
Convert the Compose ColorSpace into an Android framework [android.
-
toAndroidRect
Creates a new instance of [android.
-
toAndroidRectF
Creates a new instance of [android.
- toAndroidTileMode
- toAndroidVertexMode
-
toArgb
Converts this color to an ARGB color int.
-
toColorLong
Converts the Color to a 64-bit ColorLong value that can be used by Android's framework.
-
toComposeColorSpace
Convert the [android.
-
toComposeIntRect
Creates a new instance of [androidx.
- toComposePathEffect
-
toComposeRect
Creates a new instance of [androidx.
- toComposeTileMode
-
toPath
Converts this list of PathNode into a Path by adding the appropriate commands to the target path.
-
toPixelMap
Convenience method to extract pixel information from the given ImageBitmap into a PixelMap that supports for querying pixel information based on
-
toSvg
Returns an SVG representation of this path.
-
translate
Translate the coordinate space by the given delta in pixels in both the x and y coordinates respectively
-
withSave
Saves a copy of the current transform and clip on the save stack and executes the provided lambda with the current transform applied.
-
withSaveLayer
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.
-
withTransform
Perform 1 or more transformations and execute drawing commands with the specified transformations applied.
Compose UI Graphics
Jetpack Compose API reference for ui-graphics.