# androidx.core.graphics

*** ** * ** ***

## Classes

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/graphics/BitmapCompat` | Helper for accessing features in `https://developer.android.com/reference/android/graphics/Bitmap.html`. |
| `https://developer.android.com/reference/kotlin/androidx/core/graphics/BlendModeColorFilterCompat` | Helper for accessing ColorFilter APIs on various API levels of the platform |
| `https://developer.android.com/reference/kotlin/androidx/core/graphics/ColorUtils` | A set of color-related utility methods, building upon those available in `Color`. |
| `https://developer.android.com/reference/kotlin/androidx/core/graphics/Insets` | An Insets instance holds four integer offsets which describe changes to the four edges of a Rectangle. |
| `https://developer.android.com/reference/kotlin/androidx/core/graphics/PaintCompat` | Helper for accessing features in `https://developer.android.com/reference/android/graphics/Paint.html`. |
| `https://developer.android.com/reference/kotlin/androidx/core/graphics/PathParser` | Parses SVG path strings. |
| `https://developer.android.com/reference/kotlin/androidx/core/graphics/PathParser.PathDataNode` | Each PathDataNode represents one command in the "d" attribute of the svg file. |
| `https://developer.android.com/reference/kotlin/androidx/core/graphics/PathSegment` | A line segment that represents an approximate fraction of a `https://developer.android.com/reference/android/graphics/Path.html` after `https://developer.android.com/reference/kotlin/androidx/core/graphics/PathUtils#flatten(android.graphics.Path)`. |
| `https://developer.android.com/reference/kotlin/androidx/core/graphics/PathUtils` | A set of path-related utility methods. |
| `https://developer.android.com/reference/kotlin/androidx/core/graphics/TypefaceCompat` | Helper for accessing features in `https://developer.android.com/reference/android/graphics/Typeface.html`. |

## Enums

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/core/graphics/BlendModeCompat` | Compat version of `https://developer.android.com/reference/android/graphics/BlendMode.html`, usages of `https://developer.android.com/reference/kotlin/androidx/core/graphics/BlendModeCompat` will map to `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` wherever possible |

## Top-level functions summary

|---|---|
| `inline https://developer.android.com/reference/android/graphics/Bitmap.html` | `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#createBitmap(kotlin.Int,kotlin.Int,android.graphics.Bitmap.Config)(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/android/graphics/Bitmap.Config.html)` Returns a mutable bitmap with the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#createBitmap(kotlin.Int,kotlin.Int,android.graphics.Bitmap.Config)` and `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#createBitmap(kotlin.Int,kotlin.Int,android.graphics.Bitmap.Config)`. |
| `inline https://developer.android.com/reference/android/graphics/Bitmap.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#createBitmap(kotlin.Int,kotlin.Int,android.graphics.Bitmap.Config,kotlin.Boolean,android.graphics.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/android/graphics/Bitmap.Config.html, hasAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, colorSpace: https://developer.android.com/reference/android/graphics/ColorSpace.html )` Returns a mutable bitmap with the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#createBitmap(kotlin.Int,kotlin.Int,android.graphics.Bitmap.Config,kotlin.Boolean,android.graphics.ColorSpace)` and `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#createBitmap(kotlin.Int,kotlin.Int,android.graphics.Bitmap.Config,kotlin.Boolean,android.graphics.ColorSpace)`. |
| `https://developer.android.com/reference/android/graphics/Matrix.html` | `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#rotationMatrix(kotlin.Float,kotlin.Float,kotlin.Float)(degrees: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, px: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, py: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Creates a rotation matrix, defined by a rotation angle in degrees around the pivot point located at the coordinates (`https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#rotationMatrix(kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#rotationMatrix(kotlin.Float,kotlin.Float,kotlin.Float)`). |
| `https://developer.android.com/reference/android/graphics/Matrix.html` | `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#scaleMatrix(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)` Creates a scale matrix with the scale factor `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#scaleMatrix(kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#scaleMatrix(kotlin.Float,kotlin.Float)` respectively on the `x` and `y` axis. |
| `https://developer.android.com/reference/android/graphics/Matrix.html` | `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#translationMatrix(kotlin.Float,kotlin.Float)(tx: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, ty: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Creates a translation matrix with the translation amounts `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#translationMatrix(kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#translationMatrix(kotlin.Float,kotlin.Float)` respectively on the `x` and `y` axis. |

## Extension functions summary

|---|---|
| `inline infix https://developer.android.com/reference/android/graphics/Path.html` | `https://developer.android.com/reference/android/graphics/Path.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Path).and(android.graphics.Path)(p: https://developer.android.com/reference/android/graphics/Path.html)` Returns the intersection of two paths as a new `https://developer.android.com/reference/android/graphics/Path.html`. |
| `inline infix https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).and(android.graphics.Rect)(r: https://developer.android.com/reference/android/graphics/Rect.html)` Returns the intersection of two rectangles as a new rectangle. |
| `inline infix https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).and(android.graphics.Rect)(r: https://developer.android.com/reference/android/graphics/Rect.html)` Return the intersection of this region and the specified `https://developer.android.com/reference/android/graphics/Rect.html` as a new region. |
| `inline infix https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).and(android.graphics.RectF)(r: https://developer.android.com/reference/android/graphics/RectF.html)` Returns the intersection of two rectangles as a new rectangle. |
| `inline infix https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).and(android.graphics.Region)(r: https://developer.android.com/reference/android/graphics/Region.html)` Return the intersection of this region and the specified region as a new region. |
| `inline https://developer.android.com/reference/android/graphics/Bitmap.html` | `https://developer.android.com/reference/android/graphics/Bitmap.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Bitmap).applyCanvas(kotlin.Function1)(block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Creates a new `https://developer.android.com/reference/android/graphics/Canvas.html` to draw on this bitmap and executes the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Bitmap).applyCanvas(kotlin.Function1)` on the newly created canvas. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/android/graphics/Color.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Color).component1()()` Returns the first component of the color. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@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/core/graphics/package-summary#(kotlin.Int).component1()()` Return the alpha component of a color int. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Long).component1()()` Returns the first component of the color. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/graphics/Point.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Point).component1()()` Returns the x coordinate of this point. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/android/graphics/PointF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PointF).component1()()` Returns the x coordinate of this point. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).component1()()` Returns "left", the first component of the rectangle. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).component1()()` Returns "left", the first component of the rectangle. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/android/graphics/Color.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Color).component2()()` Returns the second component of the color. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@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/core/graphics/package-summary#(kotlin.Int).component2()()` Return the red component of a color int. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Long).component2()()` Returns the second component of the color. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/graphics/Point.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Point).component2()()` Returns the y coordinate of this point. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/android/graphics/PointF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PointF).component2()()` Returns the y coordinate of this point. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).component2()()` Returns "top", the second component of the rectangle. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).component2()()` Returns "top", the second component of the rectangle. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/android/graphics/Color.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Color).component3()()` Returns the third component of the color. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@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/core/graphics/package-summary#(kotlin.Int).component3()()` Return the green component of a color int. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Long).component3()()` Returns the third component of the color. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).component3()()` Returns "right", the third component of the rectangle. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).component3()()` Returns "right", the third component of the rectangle. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/android/graphics/Color.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Color).component4()()` Returns the fourth component of the color. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@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/core/graphics/package-summary#(kotlin.Int).component4()()` Return the blue component of a color int. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Long).component4()()` Returns the fourth component of the color. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).component4()()` Returns "bottom", the fourth component of the rectangle. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).component4()()` Returns "bottom", the fourth component of the rectangle. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/graphics/Bitmap.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Bitmap).contains(android.graphics.Point)(p: https://developer.android.com/reference/android/graphics/Point.html)` Returns true if the specified point is inside the bitmap. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).contains(android.graphics.Point)(p: https://developer.android.com/reference/android/graphics/Point.html)` Returns true if the specified point is inside the rectangle. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).contains(android.graphics.Point)(p: https://developer.android.com/reference/android/graphics/Point.html)` Return true if the region contains the specified `https://developer.android.com/reference/android/graphics/Point.html`. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/graphics/Bitmap.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Bitmap).contains(android.graphics.PointF)(p: https://developer.android.com/reference/android/graphics/PointF.html)` Returns true if the specified point is inside the bitmap. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).contains(android.graphics.PointF)(p: https://developer.android.com/reference/android/graphics/PointF.html)` Returns true if the specified point is inside the rectangle. |
| `inline infix @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/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Int).convertTo(android.graphics.ColorSpace)(colorSpace: https://developer.android.com/reference/android/graphics/ColorSpace.html)` Converts the color int receiver to a color long in the specified color space. |
| `inline infix @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/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Long).convertTo(android.graphics.ColorSpace)(colorSpace: https://developer.android.com/reference/android/graphics/ColorSpace.html)` Converts the color long receiver to a color long in the specified color space. |
| `inline infix https://developer.android.com/reference/android/graphics/Color.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/android/graphics/Color.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Color).convertTo(android.graphics.ColorSpace)(colorSpace: https://developer.android.com/reference/android/graphics/ColorSpace.html)` Converts the color receiver to a color in the specified color space. |
| `inline infix @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/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Int).convertTo(android.graphics.ColorSpace.Named)(colorSpace: https://developer.android.com/reference/android/graphics/ColorSpace.Named.html)` Converts the color int receiver to a color long in the specified color space. |
| `inline infix @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/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Long).convertTo(android.graphics.ColorSpace.Named)(colorSpace: https://developer.android.com/reference/android/graphics/ColorSpace.Named.html)` Converts the color long receiver to a color long in the specified color space. |
| `inline infix https://developer.android.com/reference/android/graphics/Color.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/android/graphics/Color.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Color).convertTo(android.graphics.ColorSpace.Named)(colorSpace: https://developer.android.com/reference/android/graphics/ColorSpace.Named.html)` Converts the color receiver to a color in the specified color space. |
| `inline https://developer.android.com/reference/android/graphics/Bitmap.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 28) https://developer.android.com/reference/android/graphics/ImageDecoder.Source.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.ImageDecoder.Source).decodeBitmap(kotlin.Function3)( crossinline action: https://developer.android.com/reference/android/graphics/ImageDecoder.html.(info: https://developer.android.com/reference/android/graphics/ImageDecoder.ImageInfo.html, source: https://developer.android.com/reference/android/graphics/ImageDecoder.Source.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Create a Bitmap from a Source |
| `inline https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 28) https://developer.android.com/reference/android/graphics/ImageDecoder.Source.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.ImageDecoder.Source).decodeDrawable(kotlin.Function3)( crossinline action: https://developer.android.com/reference/android/graphics/ImageDecoder.html.(info: https://developer.android.com/reference/android/graphics/ImageDecoder.ImageInfo.html, source: https://developer.android.com/reference/android/graphics/ImageDecoder.Source.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Create a Drawable from a Source |
| `inline operator https://developer.android.com/reference/android/graphics/Point.html` | `https://developer.android.com/reference/android/graphics/Point.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Point).div(kotlin.Float)(scalar: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Divides this point by the specified scalar value and returns the result as a new point. |
| `inline operator https://developer.android.com/reference/android/graphics/PointF.html` | `https://developer.android.com/reference/android/graphics/PointF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PointF).div(kotlin.Float)(scalar: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Divides this point by the specified scalar value and returns the result as a new point. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-iterable/index.html<https://developer.android.com/reference/kotlin/androidx/core/graphics/PathSegment>` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/android/graphics/Path.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Path).flatten(kotlin.Float)(error: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Flattens (or approximate) the `https://developer.android.com/reference/android/graphics/Path.html` with a series of line segments. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).forEach(kotlin.Function1)(action: (rect: https://developer.android.com/reference/android/graphics/Rect.html) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Performs the given action on each rect in this region. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/android/graphics/Bitmap.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Bitmap).get(kotlin.Int,kotlin.Int)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the value of the pixel at the specified location. |
| `operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-iterator/index.html<https://developer.android.com/reference/android/graphics/Rect.html>` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).iterator()()` Returns an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-iterator/index.html` over the rects in this region. |
| `inline operator https://developer.android.com/reference/android/graphics/Path.html` | `https://developer.android.com/reference/android/graphics/Path.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Path).minus(android.graphics.Path)(p: https://developer.android.com/reference/android/graphics/Path.html)` Returns the difference of two paths as a new `https://developer.android.com/reference/android/graphics/Path.html`. |
| `inline operator https://developer.android.com/reference/android/graphics/Point.html` | `https://developer.android.com/reference/android/graphics/Point.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Point).minus(android.graphics.Point)(p: https://developer.android.com/reference/android/graphics/Point.html)` Offsets this point by the negation of the specified point and returns the result as a new point. |
| `inline operator https://developer.android.com/reference/android/graphics/PointF.html` | `https://developer.android.com/reference/android/graphics/PointF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PointF).minus(android.graphics.PointF)(p: https://developer.android.com/reference/android/graphics/PointF.html)` Offsets this point by the negation of the specified point and returns the result as a new point. |
| `inline operator https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).minus(android.graphics.Rect)(r: https://developer.android.com/reference/android/graphics/Rect.html)` Returns the difference of this rectangle and the specified rectangle as a new region. |
| `inline operator https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).minus(android.graphics.Rect)(r: https://developer.android.com/reference/android/graphics/Rect.html)` Return the difference of this region and the specified `https://developer.android.com/reference/android/graphics/Rect.html` as a new region. |
| `inline operator https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).minus(android.graphics.RectF)(r: https://developer.android.com/reference/android/graphics/RectF.html)` Returns the difference of this rectangle and the specified rectangle as a new region. |
| `inline operator https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).minus(android.graphics.Region)(r: https://developer.android.com/reference/android/graphics/Region.html)` Return the difference of this region and the specified region as a new region. |
| `inline operator https://developer.android.com/reference/android/graphics/PointF.html` | `https://developer.android.com/reference/android/graphics/PointF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PointF).minus(kotlin.Float)(xy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Offsets this point by the negation of the specified amount on both X and Y axis and returns the result as a new point. |
| `inline operator https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).minus(kotlin.Float)(xy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Returns a new rectangle representing this rectangle offset by the negation of the specified amount on both X and Y axis. |
| `inline operator https://developer.android.com/reference/android/graphics/Point.html` | `https://developer.android.com/reference/android/graphics/Point.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Point).minus(kotlin.Int)(xy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Offsets this point by the negation of the specified amount on both X and Y axis and returns the result as a new point. |
| `inline operator https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).minus(kotlin.Int)(xy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns a new rectangle representing this rectangle offset by the negation of the specified amount on both X and Y axis. |
| `inline operator https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).minus(android.graphics.Point)(xy: https://developer.android.com/reference/android/graphics/Point.html)` Returns a new rectangle representing this rectangle offset by the negation of the specified point. |
| `inline operator https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).minus(android.graphics.PointF)(xy: https://developer.android.com/reference/android/graphics/PointF.html)` Returns a new rectangle representing this rectangle offset by the negation of the specified point. |
| `inline operator https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).not()()` Returns the negation of this region as a new region. |
| `inline infix https://developer.android.com/reference/android/graphics/Path.html` | `https://developer.android.com/reference/android/graphics/Path.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Path).or(android.graphics.Path)(p: https://developer.android.com/reference/android/graphics/Path.html)` Returns the union of two paths as a new `https://developer.android.com/reference/android/graphics/Path.html`. |
| `inline infix https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).or(android.graphics.Rect)(r: https://developer.android.com/reference/android/graphics/Rect.html)` Returns the union of two rectangles as a new rectangle. |
| `inline infix https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).or(android.graphics.Rect)(r: https://developer.android.com/reference/android/graphics/Rect.html)` Return the union of this region and the specified `https://developer.android.com/reference/android/graphics/Rect.html` as a new region. |
| `inline infix https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).or(android.graphics.RectF)(r: https://developer.android.com/reference/android/graphics/RectF.html)` Returns the union of two rectangles as a new rectangle. |
| `inline infix https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).or(android.graphics.Region)(r: https://developer.android.com/reference/android/graphics/Region.html)` Return the union of this region and the specified region as a new region. |
| `operator https://developer.android.com/reference/android/graphics/Color.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) https://developer.android.com/reference/android/graphics/Color.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Color).plus(android.graphics.Color)(c: https://developer.android.com/reference/android/graphics/Color.html)` Composites two translucent colors together. |
| `inline operator https://developer.android.com/reference/android/graphics/Path.html` | `https://developer.android.com/reference/android/graphics/Path.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Path).plus(android.graphics.Path)(p: https://developer.android.com/reference/android/graphics/Path.html)` Returns the union of two paths as a new `https://developer.android.com/reference/android/graphics/Path.html`. |
| `inline operator https://developer.android.com/reference/android/graphics/Point.html` | `https://developer.android.com/reference/android/graphics/Point.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Point).plus(android.graphics.Point)(p: https://developer.android.com/reference/android/graphics/Point.html)` Offsets this point by the specified point and returns the result as a new point. |
| `inline operator https://developer.android.com/reference/android/graphics/PointF.html` | `https://developer.android.com/reference/android/graphics/PointF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PointF).plus(android.graphics.PointF)(p: https://developer.android.com/reference/android/graphics/PointF.html)` Offsets this point by the specified point and returns the result as a new point. |
| `inline operator https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).plus(android.graphics.Rect)(r: https://developer.android.com/reference/android/graphics/Rect.html)` Performs the union of this rectangle and the specified rectangle and returns the result as a new rectangle. |
| `inline operator https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).plus(android.graphics.Rect)(r: https://developer.android.com/reference/android/graphics/Rect.html)` Return the union of this region and the specified `https://developer.android.com/reference/android/graphics/Rect.html` as a new region. |
| `inline operator https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).plus(android.graphics.RectF)(r: https://developer.android.com/reference/android/graphics/RectF.html)` Performs the union of this rectangle and the specified rectangle and returns the result as a new rectangle. |
| `inline operator https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).plus(android.graphics.Region)(r: https://developer.android.com/reference/android/graphics/Region.html)` Return the union of this region and the specified region as a new region. |
| `inline operator https://developer.android.com/reference/android/graphics/PointF.html` | `https://developer.android.com/reference/android/graphics/PointF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PointF).plus(kotlin.Float)(xy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Offsets this point by the specified amount on both X and Y axis and returns the result as a new point. |
| `inline operator https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).plus(kotlin.Float)(xy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Returns a new rectangle representing this rectangle offset by the specified amount on both X and Y axis. |
| `inline operator https://developer.android.com/reference/android/graphics/Point.html` | `https://developer.android.com/reference/android/graphics/Point.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Point).plus(kotlin.Int)(xy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Offsets this point by the specified amount on both X and Y axis and returns the result as a new point. |
| `inline operator https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).plus(kotlin.Int)(xy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns a new rectangle representing this rectangle offset by the specified amount on both X and Y axis. |
| `inline operator https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).plus(android.graphics.Point)(xy: https://developer.android.com/reference/android/graphics/Point.html)` Returns a new rectangle representing this rectangle offset by the specified point. |
| `inline operator https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).plus(android.graphics.PointF)(xy: https://developer.android.com/reference/android/graphics/PointF.html)` Returns a new rectangle representing this rectangle offset by the specified point. |
| `inline https://developer.android.com/reference/android/graphics/Picture.html` | `https://developer.android.com/reference/android/graphics/Picture.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Picture).record(kotlin.Int,kotlin.Int,kotlin.Function1)(width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Creates a new `https://developer.android.com/reference/android/graphics/Canvas.html` to record commands in this `https://developer.android.com/reference/android/graphics/Picture.html`, executes the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Picture).record(kotlin.Int,kotlin.Int,kotlin.Function1)` on the newly created canvas and returns this `https://developer.android.com/reference/android/graphics/Picture.html`. |
| `inline https://developer.android.com/reference/android/graphics/Bitmap.html` | `https://developer.android.com/reference/android/graphics/Bitmap.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Bitmap).scale(kotlin.Int,kotlin.Int,kotlin.Boolean)(width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, filter: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` Creates a new bitmap, scaled from this bitmap, when possible. |
| `inline operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Bitmap.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Bitmap).set(kotlin.Int,kotlin.Int,kotlin.Int)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, color: @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Writes the specified `https://developer.android.com/reference/android/graphics/Color.html` into the bitmap (assuming it is mutable) at the specified `(x, y)` coordinate. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/android/graphics/Paint.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Paint).setBlendMode(androidx.core.graphics.BlendModeCompat)(blendModeCompat: https://developer.android.com/reference/kotlin/androidx/core/graphics/BlendModeCompat?)` Convenience method to configure the BlendMode of a Paint in a backward compatible way. |
| `inline operator https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).times(kotlin.Float)(factor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Returns a new rectangle representing this rectangle's components each scaled by `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).times(kotlin.Float)`. |
| `inline operator https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).times(kotlin.Int)(factor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns a new rectangle representing this rectangle's components each scaled by `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).times(kotlin.Int)`. |
| `inline operator https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).times(kotlin.Int)(factor: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns a new rectangle representing this rectangle's components each scaled by `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).times(kotlin.Int)`. |
| `inline operator https://developer.android.com/reference/android/graphics/Matrix.html` | `https://developer.android.com/reference/android/graphics/Matrix.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Matrix).times(android.graphics.Matrix)(m: https://developer.android.com/reference/android/graphics/Matrix.html)` Multiplies this `https://developer.android.com/reference/android/graphics/Matrix.html` by another matrix and returns the result as a new matrix. |
| `inline operator https://developer.android.com/reference/android/graphics/Point.html` | `https://developer.android.com/reference/android/graphics/Point.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Point).times(kotlin.Float)(scalar: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Multiplies this point by the specified scalar value and returns the result as a new point. |
| `inline operator https://developer.android.com/reference/android/graphics/PointF.html` | `https://developer.android.com/reference/android/graphics/PointF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PointF).times(kotlin.Float)(scalar: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` Multiplies this point by the specified scalar value and returns the result as a new point. |
| `inline https://developer.android.com/reference/android/graphics/Color.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Int).toColor()()` Creates a new `https://developer.android.com/reference/android/graphics/Color.html` instance from a color int. |
| `inline https://developer.android.com/reference/android/graphics/Color.html` | `@https://developer.android.com/reference/kotlin/androidx/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Long).toColor()()` Creates a new `https://developer.android.com/reference/android/graphics/Color.html` instance from a `https://developer.android.com/reference/android/graphics/Color.html`. |
| `inline https://developer.android.com/reference/android/graphics/PorterDuffColorFilter.html` | `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PorterDuff.Mode).toColorFilter(kotlin.Int)(color: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates a new `https://developer.android.com/reference/android/graphics/PorterDuffColorFilter.html` that uses this `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` as the alpha compositing or blending mode, and the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PorterDuff.Mode).toColorFilter(kotlin.Int)`. |
| `inline @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/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Long).toColorInt()()` Converts the specified `https://developer.android.com/reference/android/graphics/Color.html` to an ARGB `https://developer.android.com/reference/android/graphics/Color.html`. |
| `inline @https://developer.android.com/reference/kotlin/androidx/annotation/ColorInt https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(kotlin.String).toColorInt()()` Return a corresponding `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` color of this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html`. |
| `inline @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/annotation/RequiresApi(value = 26) @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/core/graphics/package-summary#(kotlin.Int).toColorLong()()` Converts the specified ARGB `https://developer.android.com/reference/android/graphics/Color.html` to an RGBA `https://developer.android.com/reference/android/graphics/Color.html` in the `https://developer.android.com/reference/android/graphics/ColorSpace.Named.html#SRGB` color space. |
| `inline https://developer.android.com/reference/android/graphics/Point.html` | `https://developer.android.com/reference/android/graphics/PointF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PointF).toPoint()()` Returns a `https://developer.android.com/reference/android/graphics/Point.html` representation of this point. |
| `inline https://developer.android.com/reference/android/graphics/PointF.html` | `https://developer.android.com/reference/android/graphics/Point.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Point).toPointF()()` Returns a `https://developer.android.com/reference/android/graphics/PointF.html` representation of this point. |
| `inline https://developer.android.com/reference/android/graphics/Rect.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).toRect()()` Returns a `https://developer.android.com/reference/android/graphics/Rect.html` representation of this rectangle. |
| `inline https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).toRectF()()` Returns a `https://developer.android.com/reference/android/graphics/RectF.html` representation of this rectangle. |
| `inline https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).toRegion()()` Returns a `https://developer.android.com/reference/android/graphics/Region.html` representation of this rectangle. |
| `inline https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).toRegion()()` Returns a `https://developer.android.com/reference/android/graphics/Region.html` representation of this rectangle. |
| `inline https://developer.android.com/reference/android/graphics/PorterDuffXfermode.html` | `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PorterDuff.Mode).toXfermode()()` Creates a new `https://developer.android.com/reference/android/graphics/PorterDuffXfermode.html` that uses this `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` as the alpha compositing or blending mode. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Shader.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Shader).transform(kotlin.Function1)(block: https://developer.android.com/reference/android/graphics/Matrix.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Shader).transform(kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Shader.html#getLocalMatrix(android.graphics.Matrix)` and `https://developer.android.com/reference/android/graphics/Shader.html#setLocalMatrix(android.graphics.Matrix)`. |
| `inline https://developer.android.com/reference/android/graphics/RectF.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).transform(android.graphics.Matrix)(m: https://developer.android.com/reference/android/graphics/Matrix.html)` Transform this rectangle in place using the supplied `https://developer.android.com/reference/android/graphics/Matrix.html` and returns this rectangle. |
| `inline operator https://developer.android.com/reference/android/graphics/Point.html` | `https://developer.android.com/reference/android/graphics/Point.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Point).unaryMinus()()` Returns a new point representing the negation of this point. |
| `inline operator https://developer.android.com/reference/android/graphics/PointF.html` | `https://developer.android.com/reference/android/graphics/PointF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PointF).unaryMinus()()` Returns a new point representing the negation of this point. |
| `inline operator https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).unaryMinus()()` Returns the negation of this region as a new region. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float-array/index.html` | `https://developer.android.com/reference/android/graphics/Matrix.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Matrix).values()()` Returns the 9 values of this `https://developer.android.com/reference/android/graphics/Matrix.html` as a new array of floats. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Canvas.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(android.graphics.Path,kotlin.Function1)(clipPath: https://developer.android.com/reference/android/graphics/Path.html, block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(android.graphics.Path,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#clipPath(android.graphics.Path)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Canvas.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(android.graphics.Rect,kotlin.Function1)(clipRect: https://developer.android.com/reference/android/graphics/Rect.html, block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(android.graphics.Rect,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#clipRect(android.graphics.Rect)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Canvas.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(android.graphics.RectF,kotlin.Function1)(clipRect: https://developer.android.com/reference/android/graphics/RectF.html, block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(android.graphics.RectF,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#clipRect(android.graphics.Rect)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Canvas.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Function1)( left: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, top: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, right: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, bottom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#clipRect(android.graphics.Rect)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Canvas.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Function1)( left: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, top: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, right: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, bottom: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#clipRect(android.graphics.Rect)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Canvas.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withMatrix(android.graphics.Matrix,kotlin.Function1)(matrix: https://developer.android.com/reference/android/graphics/Matrix.html, block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withMatrix(android.graphics.Matrix,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#concat(android.graphics.Matrix)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Canvas.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withRotation(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Function1)( 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, block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withRotation(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#rotate(float)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Canvas.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withSave(kotlin.Function1)(block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withSave(kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Canvas.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withScale(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Function1)( x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y: 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, block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html )` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withScale(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#scale(float, float)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Canvas.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withSkew(kotlin.Float,kotlin.Float,kotlin.Function1)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withSkew(kotlin.Float,kotlin.Float,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#skew(float, float)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`. |
| `inline https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://developer.android.com/reference/android/graphics/Canvas.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withTranslation(kotlin.Float,kotlin.Float,kotlin.Function1)(x: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, y: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html, block: https://developer.android.com/reference/android/graphics/Canvas.html.() -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withTranslation(kotlin.Float,kotlin.Float,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#translate(float, float)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`. |
| `inline infix https://developer.android.com/reference/android/graphics/Path.html` | `https://developer.android.com/reference/android/graphics/Path.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Path).xor(android.graphics.Path)(p: https://developer.android.com/reference/android/graphics/Path.html)` Returns the union minus the intersection of two paths as a new `https://developer.android.com/reference/android/graphics/Path.html`. |
| `inline infix https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Rect.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).xor(android.graphics.Rect)(r: https://developer.android.com/reference/android/graphics/Rect.html)` Returns the union minus the intersection of two rectangles as a new region. |
| `inline infix https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).xor(android.graphics.Rect)(r: https://developer.android.com/reference/android/graphics/Rect.html)` Return the union minus the intersection of this region and the specified `https://developer.android.com/reference/android/graphics/Rect.html` as a new region. |
| `inline infix https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/RectF.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).xor(android.graphics.RectF)(r: https://developer.android.com/reference/android/graphics/RectF.html)` Returns the union minus the intersection of two rectangles as a new region. |
| `inline infix https://developer.android.com/reference/android/graphics/Region.html` | `https://developer.android.com/reference/android/graphics/Region.html.https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Region).xor(android.graphics.Region)(r: https://developer.android.com/reference/android/graphics/Region.html)` Return the union minus the intersection of this region and the specified region as a new region. |

## Extension properties summary

|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@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/core/graphics/package-summary#(kotlin.Int).alpha()` Return the alpha component of a color int. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@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/core/graphics/package-summary#(kotlin.Long).alpha()` Return the alpha component of a color long. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@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/core/graphics/package-summary#(kotlin.Int).blue()` Return the blue component of a color int. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@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/core/graphics/package-summary#(kotlin.Long).blue()` Return the blue component of a color long. |
| `https://developer.android.com/reference/android/graphics/ColorSpace.html` | `@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/core/graphics/package-summary#(kotlin.Long).colorSpace()` Returns the color space encoded in the specified color long. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@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/core/graphics/package-summary#(kotlin.Int).green()` Return the green component of a color int. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@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/core/graphics/package-summary#(kotlin.Long).green()` Return the green component of a color long. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@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/core/graphics/package-summary#(kotlin.Long).isSrgb()` Indicates whether the color is in the `https://developer.android.com/reference/android/graphics/ColorSpace.Named.html#SRGB` color space. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@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/core/graphics/package-summary#(kotlin.Long).isWideGamut()` Indicates whether the color is in a `https://developer.android.com/reference/android/graphics/ColorSpace.html` color space. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@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/core/graphics/package-summary#(kotlin.Int).luminance()` Returns the relative luminance of a color int, assuming sRGB encoding. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@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/core/graphics/package-summary#(kotlin.Long).luminance()` Returns the relative luminance of a color. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@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/core/graphics/package-summary#(kotlin.Int).red()` Return the red component of a color int. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `@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/core/graphics/package-summary#(kotlin.Long).red()` Return the red component of a color long. |

## Top-level functions

### createBitmap

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Bitmap.kt+function:createBitmap) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun createBitmap(
    width: Int,
    height: Int,
    config: Bitmap.Config = Bitmap.Config.ARGB_8888
): Bitmap
```

Returns a mutable bitmap with the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#createBitmap(kotlin.Int,kotlin.Int,android.graphics.Bitmap.Config)` and `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#createBitmap(kotlin.Int,kotlin.Int,android.graphics.Bitmap.Config)`. A config can be optionally specified. If not, the default config is `https://developer.android.com/reference/android/graphics/Bitmap.Config.html#ARGB_8888`.

| Parameters |
|---|---|
| `width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The new bitmap's desired width |
| `height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The new bitmap's desired height |
| `config: https://developer.android.com/reference/android/graphics/Bitmap.Config.html = Bitmap.Config.ARGB_8888` | The new bitmap's desired `https://developer.android.com/reference/android/graphics/Bitmap.Config.html` |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/graphics/Bitmap.html` | A new bitmap with the specified dimensions and config |

### createBitmap

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Bitmap.kt+function:createBitmap) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline fun createBitmap(
    width: Int,
    height: Int,
    config: Bitmap.Config = Bitmap.Config.ARGB_8888,
    hasAlpha: Boolean = true,
    colorSpace: ColorSpace = ColorSpace.get(ColorSpace.Named.SRGB)
): Bitmap
```

Returns a mutable bitmap with the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#createBitmap(kotlin.Int,kotlin.Int,android.graphics.Bitmap.Config,kotlin.Boolean,android.graphics.ColorSpace)` and `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#createBitmap(kotlin.Int,kotlin.Int,android.graphics.Bitmap.Config,kotlin.Boolean,android.graphics.ColorSpace)`. The config, transparency and color space can optionally be specified. They respectively default to `https://developer.android.com/reference/android/graphics/Bitmap.Config.html#ARGB_8888`, `true` and `https://developer.android.com/reference/android/graphics/ColorSpace.Named.html#SRGB`.

| Parameters |
|---|---|
| `width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The new bitmap's desired width |
| `height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The new bitmap's desired height |
| `config: https://developer.android.com/reference/android/graphics/Bitmap.Config.html = Bitmap.Config.ARGB_8888` | The new bitmap's desired `https://developer.android.com/reference/android/graphics/Bitmap.Config.html` |
| `hasAlpha: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | Whether the new bitmap is opaque or not |
| `colorSpace: https://developer.android.com/reference/android/graphics/ColorSpace.html = ColorSpace.get(ColorSpace.Named.SRGB)` | The new bitmap's color space |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/graphics/Bitmap.html` | A new bitmap with the specified dimensions and config |

### rotationMatrix

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Matrix.kt+function:rotationMatrix) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun rotationMatrix(degrees: Float, px: Float = 0.0f, py: Float = 0.0f): Matrix
```

Creates a rotation matrix, defined by a rotation angle in degrees around the pivot point located at the coordinates (`https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#rotationMatrix(kotlin.Float,kotlin.Float,kotlin.Float)`, `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#rotationMatrix(kotlin.Float,kotlin.Float,kotlin.Float)`).

### scaleMatrix

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Matrix.kt+function:scaleMatrix) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun scaleMatrix(sx: Float = 1.0f, sy: Float = 1.0f): Matrix
```

Creates a scale matrix with the scale factor `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#scaleMatrix(kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#scaleMatrix(kotlin.Float,kotlin.Float)` respectively on the `x` and `y` axis.

### translationMatrix

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Matrix.kt+function:translationMatrix) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
fun translationMatrix(tx: Float = 0.0f, ty: Float = 0.0f): Matrix
```

Creates a translation matrix with the translation amounts `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#translationMatrix(kotlin.Float,kotlin.Float)` and `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#translationMatrix(kotlin.Float,kotlin.Float)` respectively on the `x` and `y` axis.

## Extension functions

### Path.and

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Path.kt+function:and) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Path.and(p: Path): Path
```

Returns the intersection of two paths as a new `https://developer.android.com/reference/android/graphics/Path.html`. If the paths do not intersect, returns an empty path.

### Rect.and

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:and) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Rect.and(r: Rect): Rect
```

Returns the intersection of two rectangles as a new rectangle. If the rectangles do not intersect, returns a copy of the left hand side rectangle.

### Region.and

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:and) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Region.and(r: Rect): Region
```

Return the intersection of this region and the specified `https://developer.android.com/reference/android/graphics/Rect.html` as a new region.

### RectF.and

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:and) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun RectF.and(r: RectF): RectF
```

Returns the intersection of two rectangles as a new rectangle. If the rectangles do not intersect, returns a copy of the left hand side rectangle.

### Region.and

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:and) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Region.and(r: Region): Region
```

Return the intersection of this region and the specified region as a new region.

### Bitmap.applyCanvas

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Bitmap.kt+function:applyCanvas) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

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

Creates a new `https://developer.android.com/reference/android/graphics/Canvas.html` to draw on this bitmap and executes the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Bitmap).applyCanvas(kotlin.Function1)` on the newly created canvas. Example:

```kotlin
return Bitmap.createBitmap(...).applyCanvas {
   drawLine(...)
   translate(...)
   drawRect(...)
}
```

### Color.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component1) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline operator fun Color.component1(): Float
```

Returns the first component of the color. For instance, when the color model of the color is `https://developer.android.com/reference/android/graphics/ColorSpace.Model.html#RGB`, the first component is "red".

This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (red, green, blue) = myColor
```

### Int.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component1) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun @ColorInt Int.component1(): Int
```

Return the alpha component of a color int. This is equivalent to calling:

```kotlin
Color.alpha(myInt)
```

This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (alpha, red, green, blue) = myColor
```

### Long.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component1) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline operator fun @ColorLong Long.component1(): Float
```

Returns the first component of the color. For instance, when the color model of the color is `https://developer.android.com/reference/android/graphics/ColorSpace.Model.html#RGB`, the first component is "red".

This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (red, green, blue, alpha) = myColorLong
```

### Point.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:component1) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Point.component1(): Int
```

Returns the x coordinate of this point.

This method allows to use destructuring declarations when working with points, for example:

```kotlin
val (x, y) = myPoint
```

### PointF.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:component1) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun PointF.component1(): Float
```

Returns the x coordinate of this point.

This method allows to use destructuring declarations when working with points, for example:

```kotlin
val (x, y) = myPoint
```

### Rect.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:component1) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Rect.component1(): Int
```

Returns "left", the first component of the rectangle.

This method allows to use destructuring declarations when working with rectangles, for example:

```kotlin
val (left, top, right, bottom) = myRectangle
```

### RectF.component1

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:component1) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun RectF.component1(): Float
```

Returns "left", the first component of the rectangle.

This method allows to use destructuring declarations when working with rectangles, for example:

```kotlin
val (left, top, right, bottom) = myRectangle
```

### Color.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component2) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline operator fun Color.component2(): Float
```

Returns the second component of the color. For instance, when the color model of the color is `https://developer.android.com/reference/android/graphics/ColorSpace.Model.html#RGB`, the second component is "green".

This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (red, green, blue) = myColor
```

### Int.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component2) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun @ColorInt Int.component2(): Int
```

Return the red component of a color int. This is equivalent to calling:

```kotlin
Color.red(myInt)
```

This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (alpha, red, green, blue) = myColor
```

### Long.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component2) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline operator fun @ColorLong Long.component2(): Float
```

Returns the second component of the color. For instance, when the color model of the color is `https://developer.android.com/reference/android/graphics/ColorSpace.Model.html#RGB`, the second component is "green".

This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (red, green, blue, alpha) = myColorLong
```

### Point.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:component2) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Point.component2(): Int
```

Returns the y coordinate of this point.

This method allows to use destructuring declarations when working with points, for example:

```kotlin
val (x, y) = myPoint
```

### PointF.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:component2) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun PointF.component2(): Float
```

Returns the y coordinate of this point.

This method allows to use destructuring declarations when working with points, for example:

```kotlin
val (x, y) = myPoint
```

### Rect.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:component2) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Rect.component2(): Int
```

Returns "top", the second component of the rectangle.

This method allows to use destructuring declarations when working with rectangles, for example:

```kotlin
val (left, top, right, bottom) = myRectangle
```

### RectF.component2

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:component2) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun RectF.component2(): Float
```

Returns "top", the second component of the rectangle.

This method allows to use destructuring declarations when working with rectangles, for example:

```kotlin
val (left, top, right, bottom) = myRectangle
```

### Color.component3

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component3) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline operator fun Color.component3(): Float
```

Returns the third component of the color. For instance, when the color model of the color is `https://developer.android.com/reference/android/graphics/ColorSpace.Model.html#RGB`, the third component is "blue". = \* This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (red, green, blue) = myColor
```

### Int.component3

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component3) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun @ColorInt Int.component3(): Int
```

Return the green component of a color int. This is equivalent to calling:

```kotlin
Color.green(myInt)
```

This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (alpha, red, green, blue) = myColor
```

### Long.component3

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component3) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline operator fun @ColorLong Long.component3(): Float
```

Returns the third component of the color. For instance, when the color model of the color is `https://developer.android.com/reference/android/graphics/ColorSpace.Model.html#RGB`, the third component is "blue".

This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (red, green, blue, alpha) = myColorLong
```

### Rect.component3

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:component3) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Rect.component3(): Int
```

Returns "right", the third component of the rectangle.

This method allows to use destructuring declarations when working with rectangles, for example:

```kotlin
val (left, top, right, bottom) = myRectangle
```

### RectF.component3

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:component3) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun RectF.component3(): Float
```

Returns "right", the third component of the rectangle.

This method allows to use destructuring declarations when working with rectangles, for example:

```kotlin
val (left, top, right, bottom) = myRectangle
```

### Color.component4

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component4) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline operator fun Color.component4(): Float
```

Returns the fourth component of the color. For instance, when the color model of the color is `https://developer.android.com/reference/android/graphics/ColorSpace.Model.html#RGB`, the fourth component is "alpha".

This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (red, green, blue, alpha) = myColor
```

### Int.component4

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component4) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun @ColorInt Int.component4(): Int
```

Return the blue component of a color int. This is equivalent to calling:

```kotlin
Color.blue(myInt)
```

This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (alpha, red, green, blue) = myColor
```

### Long.component4

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:component4) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline operator fun @ColorLong Long.component4(): Float
```

Returns the fourth component of the color. For instance, when the color model of the color is `https://developer.android.com/reference/android/graphics/ColorSpace.Model.html#RGB`, the fourth component is "alpha".

This method allows to use destructuring declarations when working with colors, for example:

```kotlin
val (red, green, blue, alpha) = myColorLong
```

### Rect.component4

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:component4) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Rect.component4(): Int
```

Returns "bottom", the fourth component of the rectangle.

This method allows to use destructuring declarations when working with rectangles, for example:

```kotlin
val (left, top, right, bottom) = myRectangle
```

### RectF.component4

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:component4) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun RectF.component4(): Float
```

Returns "bottom", the fourth component of the rectangle.

This method allows to use destructuring declarations when working with rectangles, for example:

```kotlin
val (left, top, right, bottom) = myRectangle
```

### Bitmap.contains

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Bitmap.kt+function:contains) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Bitmap.contains(p: Point): Boolean
```

Returns true if the specified point is inside the bitmap. A point is contained if: 0 \<= x \< width and 0 \<= y \< height. An empty bitmap never contains any point.

### Rect.contains

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:contains) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Rect.contains(p: Point): Boolean
```

Returns true if the specified point is inside the rectangle. The left and top are considered to be inside, while the right and bottom are not. This means that for a point to be contained: left \<= x \< right and top \<= y \< bottom. An empty rectangle never contains any point.

### Region.contains

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:contains) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Region.contains(p: Point): Boolean
```

Return true if the region contains the specified `https://developer.android.com/reference/android/graphics/Point.html`.

### Bitmap.contains

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Bitmap.kt+function:contains) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Bitmap.contains(p: PointF): Boolean
```

Returns true if the specified point is inside the bitmap. A point is contained if: 0 \<= x \< width and 0 \<= y \< height. An empty bitmap never contains any point.

### RectF.contains

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:contains) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun RectF.contains(p: PointF): Boolean
```

Returns true if the specified point is inside the rectangle. The left and top are considered to be inside, while the right and bottom are not. This means that for a point to be contained: left \<= x \< right and top \<= y \< bottom. An empty rectangle never contains any point.

### Int.convertTo

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:convertTo) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline infix fun @ColorInt Int.convertTo(colorSpace: ColorSpace): @ColorLong Long
```

Converts the color int receiver to a color long in the specified color space. This is equivalent to calling:

```kotlin
Color.convert(myColorInt, colorSpace)
```

### Long.convertTo

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:convertTo) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline infix fun @ColorLong Long.convertTo(colorSpace: ColorSpace): @ColorLong Long
```

Converts the color long receiver to a color long in the specified color space. This is equivalent to calling:

```kotlin
Color.convert(myColorLong, colorSpace)
```

### Color.convertTo

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:convertTo) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline infix fun Color.convertTo(colorSpace: ColorSpace): Color
```

Converts the color receiver to a color in the specified color space. This is equivalent to calling:

```kotlin
myColor.convert(colorSpace)
```

### Int.convertTo

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:convertTo) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline infix fun @ColorInt Int.convertTo(colorSpace: ColorSpace.Named): @ColorLong Long
```

Converts the color int receiver to a color long in the specified color space. This is equivalent to calling:

```kotlin
Color.convert(myColorInt, ColorSpace.get(colorSpace))
```

### Long.convertTo

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:convertTo) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline infix fun @ColorLong Long.convertTo(colorSpace: ColorSpace.Named): @ColorLong Long
```

Converts the color long receiver to a color long in the specified color space. This is equivalent to calling:

```kotlin
Color.convert(myColorLong, ColorSpace.get(colorSpace))
```

### Color.convertTo

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:convertTo) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline infix fun Color.convertTo(colorSpace: ColorSpace.Named): Color
```

Converts the color receiver to a color in the specified color space. This is equivalent to calling:

```kotlin
myColor.convert(ColorSpace.get(colorSpace))
```

### ImageDecoder.Source.decodeBitmap

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/ImageDecoder.kt+function:decodeBitmap) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 28)
inline fun ImageDecoder.Source.decodeBitmap(
    crossinline action: ImageDecoder.(info: ImageDecoder.ImageInfo, source: ImageDecoder.Source) -> Unit
): Bitmap
```

Create a Bitmap from a Source

| See also |
|---|---|
| `https://developer.android.com/reference/android/graphics/ImageDecoder.html#decodeBitmap(android.graphics.ImageDecoder.Source)` |   |

### ImageDecoder.Source.decodeDrawable

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/ImageDecoder.kt+function:decodeDrawable) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 28)
inline fun ImageDecoder.Source.decodeDrawable(
    crossinline action: ImageDecoder.(info: ImageDecoder.ImageInfo, source: ImageDecoder.Source) -> Unit
): Drawable
```

Create a Drawable from a Source

| See also |
|---|---|
| `https://developer.android.com/reference/android/graphics/ImageDecoder.html#decodeDrawable(android.graphics.ImageDecoder.Source)` |   |

### Point.div

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:div) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
inline operator fun Point.div(scalar: Float): Point
```

Divides this point by the specified scalar value and returns the result as a new point.

### PointF.div

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:div) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
inline operator fun PointF.div(scalar: Float): PointF
```

Divides this point by the specified scalar value and returns the result as a new point.

### Path.flatten

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Path.kt+function:flatten) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
fun Path.flatten(error: Float = 0.5f): Iterable<PathSegment>
```

Flattens (or approximate) the `https://developer.android.com/reference/android/graphics/Path.html` with a series of line segments.

| Parameters |
|---|---|
| `error: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html = 0.5f` | The acceptable error for a line on the Path in pixels. Typically this would be 0.5 so that the error is less than half a pixel. This value must be positive and is set to 0.5 by default. |

| See also |
|---|---|
| `https://developer.android.com/reference/android/graphics/Path.html#approximate(float)` |   |

### Region.forEach

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:forEach) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Region.forEach(action: (rect: Rect) -> Unit): Unit
```

Performs the given action on each rect in this region.

### Bitmap.get

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Bitmap.kt+function:get) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Bitmap.get(x: Int, y: Int): Int
```

Returns the value of the pixel at the specified location. The returned value is a `https://developer.android.com/reference/android/graphics/Color.html` in the sRGB color space.

### Region.iterator

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:iterator) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
operator fun Region.iterator(): Iterator<Rect>
```

Returns an `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-iterator/index.html` over the rects in this region.

### Path.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Path.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Path.minus(p: Path): Path
```

Returns the difference of two paths as a new `https://developer.android.com/reference/android/graphics/Path.html`.

### Point.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Point.minus(p: Point): Point
```

Offsets this point by the negation of the specified point and returns the result as a new point.

### PointF.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun PointF.minus(p: PointF): PointF
```

Offsets this point by the negation of the specified point and returns the result as a new point.

### Rect.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Rect.minus(r: Rect): Region
```

Returns the difference of this rectangle and the specified rectangle as a new region.

### Region.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Region.minus(r: Rect): Region
```

Return the difference of this region and the specified `https://developer.android.com/reference/android/graphics/Rect.html` as a new region.

### RectF.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun RectF.minus(r: RectF): Region
```

Returns the difference of this rectangle and the specified rectangle as a new region. This rectangle is first converted to a `https://developer.android.com/reference/android/graphics/Rect.html` using `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).toRect()`.

### Region.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Region.minus(r: Region): Region
```

Return the difference of this region and the specified region as a new region.

### PointF.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun PointF.minus(xy: Float): PointF
```

Offsets this point by the negation of the specified amount on both X and Y axis and returns the result as a new point.

### RectF.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun RectF.minus(xy: Float): RectF
```

Returns a new rectangle representing this rectangle offset by the negation of the specified amount on both X and Y axis.

### Point.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Point.minus(xy: Int): Point
```

Offsets this point by the negation of the specified amount on both X and Y axis and returns the result as a new point.

### Rect.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Rect.minus(xy: Int): Rect
```

Returns a new rectangle representing this rectangle offset by the negation of the specified amount on both X and Y axis.

### Rect.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Rect.minus(xy: Point): Rect
```

Returns a new rectangle representing this rectangle offset by the negation of the specified point.

### RectF.minus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:minus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun RectF.minus(xy: PointF): RectF
```

Returns a new rectangle representing this rectangle offset by the negation of the specified point.

### Region.not

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:not) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Region.not(): Region
```

Returns the negation of this region as a new region.

### Path.or

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Path.kt+function:or) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Path.or(p: Path): Path
```

Returns the union of two paths as a new `https://developer.android.com/reference/android/graphics/Path.html`.

### Rect.or

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:or) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Rect.or(r: Rect): Rect
```

Returns the union of two rectangles as a new rectangle.

### Region.or

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:or) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Region.or(r: Rect): Region
```

Return the union of this region and the specified `https://developer.android.com/reference/android/graphics/Rect.html` as a new region.

### RectF.or

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:or) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun RectF.or(r: RectF): RectF
```

Returns the union of two rectangles as a new rectangle.

### Region.or

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:or) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Region.or(r: Region): Region
```

Return the union of this region and the specified region as a new region.

### Color.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
operator fun Color.plus(c: Color): Color
```

Composites two translucent colors together. More specifically, adds two colors using the `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html#SRC_OVER` blending mode. The colors must not be pre-multiplied and the result is a non pre-multiplied color.

If the two colors have different color spaces, the color in the right-hand part of the expression is converted to the color space of the color in left-hand part of the expression.

The following example creates a purple color by blending opaque blue with semi-translucent red:

```kotlin
val purple = Color.valueOf(0f, 0f, 1f) + Color.valueOf(1f, 0f, 0f, 0.5f)
```

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if the `https://developer.android.com/reference/android/graphics/Color.html#getModel()` of the colors do not match |

### Path.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Path.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Path.plus(p: Path): Path
```

Returns the union of two paths as a new `https://developer.android.com/reference/android/graphics/Path.html`.

### Point.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Point.plus(p: Point): Point
```

Offsets this point by the specified point and returns the result as a new point.

### PointF.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun PointF.plus(p: PointF): PointF
```

Offsets this point by the specified point and returns the result as a new point.

### Rect.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Rect.plus(r: Rect): Rect
```

Performs the union of this rectangle and the specified rectangle and returns the result as a new rectangle.

### Region.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Region.plus(r: Rect): Region
```

Return the union of this region and the specified `https://developer.android.com/reference/android/graphics/Rect.html` as a new region.

### RectF.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun RectF.plus(r: RectF): RectF
```

Performs the union of this rectangle and the specified rectangle and returns the result as a new rectangle.

### Region.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Region.plus(r: Region): Region
```

Return the union of this region and the specified region as a new region.

### PointF.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun PointF.plus(xy: Float): PointF
```

Offsets this point by the specified amount on both X and Y axis and returns the result as a new point.

### RectF.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun RectF.plus(xy: Float): RectF
```

Returns a new rectangle representing this rectangle offset by the specified amount on both X and Y axis.

### Point.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Point.plus(xy: Int): Point
```

Offsets this point by the specified amount on both X and Y axis and returns the result as a new point.

### Rect.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Rect.plus(xy: Int): Rect
```

Returns a new rectangle representing this rectangle offset by the specified amount on both X and Y axis.

### Rect.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Rect.plus(xy: Point): Rect
```

Returns a new rectangle representing this rectangle offset by the specified point.

### RectF.plus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:plus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun RectF.plus(xy: PointF): RectF
```

Returns a new rectangle representing this rectangle offset by the specified point.

### Picture.record

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Picture.kt+function:record) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Picture.record(width: Int, height: Int, block: Canvas.() -> Unit): Picture
```

Creates a new `https://developer.android.com/reference/android/graphics/Canvas.html` to record commands in this `https://developer.android.com/reference/android/graphics/Picture.html`, executes the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Picture).record(kotlin.Int,kotlin.Int,kotlin.Function1)` on the newly created canvas and returns this `https://developer.android.com/reference/android/graphics/Picture.html`. Example:

```kotlin
return myPicture.record(1280, 720) {
   drawLine(...)
   translate(...)
   drawRect(...)
}
```

### Bitmap.scale

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Bitmap.kt+function:scale) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Bitmap.scale(width: Int, height: Int, filter: Boolean = true): Bitmap
```

Creates a new bitmap, scaled from this bitmap, when possible. If the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Bitmap).scale(kotlin.Int,kotlin.Int,kotlin.Boolean)` and `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Bitmap).scale(kotlin.Int,kotlin.Int,kotlin.Boolean)` are the same as the current width and height of this bitmap, this bitmap is returned and no new bitmap is created.

| Parameters |
|---|---|
| `width: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The new bitmap's desired width |
| `height: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The new bitmap's desired height |
| `filter: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html = true` | `true` if the source should be filtered (`true` by default) |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/graphics/Bitmap.html` | The new scaled bitmap or the source bitmap if no scaling is required. |

### Bitmap.set

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Bitmap.kt+function:set) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Bitmap.set(x: Int, y: Int, color: @ColorInt Int): Unit
```

Writes the specified `https://developer.android.com/reference/android/graphics/Color.html` into the bitmap (assuming it is mutable) at the specified `(x, y)` coordinate. The specified color is converted from sRGB to the bitmap's color space if needed.

### Paint.setBlendMode

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Paint.kt+function:setBlendMode) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
inline fun Paint.setBlendMode(blendModeCompat: BlendModeCompat?): Boolean
```

Convenience method to configure the BlendMode of a Paint in a backward compatible way. This method is a no-op for BlendModes that have no equivalent on older API levels

### RectF.times

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:times) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
inline operator fun RectF.times(factor: Float): RectF
```

Returns a new rectangle representing this rectangle's components each scaled by `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).times(kotlin.Float)`.

### Rect.times

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:times) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
inline operator fun Rect.times(factor: Int): Rect
```

Returns a new rectangle representing this rectangle's components each scaled by `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Rect).times(kotlin.Int)`.

### RectF.times

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:times) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/core#1.2.0)

```
inline operator fun RectF.times(factor: Int): RectF
```

Returns a new rectangle representing this rectangle's components each scaled by `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).times(kotlin.Int)`.

### Matrix.times

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Matrix.kt+function:times) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Matrix.times(m: Matrix): Matrix
```

Multiplies this `https://developer.android.com/reference/android/graphics/Matrix.html` by another matrix and returns the result as a new matrix.

### Point.times

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:times) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
inline operator fun Point.times(scalar: Float): Point
```

Multiplies this point by the specified scalar value and returns the result as a new point.

### PointF.times

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:times) Added in [1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)

```
inline operator fun PointF.times(scalar: Float): PointF
```

Multiplies this point by the specified scalar value and returns the result as a new point.

### Int.toColor

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:toColor) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline fun @ColorInt Int.toColor(): Color
```

Creates a new `https://developer.android.com/reference/android/graphics/Color.html` instance from a color int. The resulting color is in the `https://developer.android.com/reference/android/graphics/ColorSpace.Named.html#SRGB` color space.

### Long.toColor

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:toColor) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline fun @ColorLong Long.toColor(): Color
```

Creates a new `https://developer.android.com/reference/android/graphics/Color.html` instance from a `https://developer.android.com/reference/android/graphics/Color.html`.

### PorterDuff.Mode.toColorFilter

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/PorterDuff.kt+function:toColorFilter) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun PorterDuff.Mode.toColorFilter(color: Int): PorterDuffColorFilter
```

Creates a new `https://developer.android.com/reference/android/graphics/PorterDuffColorFilter.html` that uses this `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` as the alpha compositing or blending mode, and the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.PorterDuff.Mode).toColorFilter(kotlin.Int)`.

### Long.toColorInt

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:toColorInt) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline fun @ColorLong Long.toColorInt(): @ColorInt Int
```

Converts the specified `https://developer.android.com/reference/android/graphics/Color.html` to an ARGB `https://developer.android.com/reference/android/graphics/Color.html`.

### String.toColorInt

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:toColorInt) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun String.toColorInt(): @ColorInt Int
```

Return a corresponding `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` color of this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html`.

Supported formats are:

```kotlin
#RRGGBB
#AARRGGBB
```

The following names are also accepted: "red", "blue", "green", "black", "white", "gray", "cyan", "magenta", "yellow", "lightgray", "darkgray", "grey", "lightgrey", "darkgrey", "aqua", "fuchsia", "lime", "maroon", "navy", "olive", "purple", "silver", "teal".

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if this `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` cannot be parsed. |

### Int.toColorLong

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+function:toColorLong) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
@RequiresApi(value = 26)
inline fun @ColorInt Int.toColorLong(): @ColorLong Long
```

Converts the specified ARGB `https://developer.android.com/reference/android/graphics/Color.html` to an RGBA `https://developer.android.com/reference/android/graphics/Color.html` in the `https://developer.android.com/reference/android/graphics/ColorSpace.Named.html#SRGB` color space.

### PointF.toPoint

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:toPoint) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun PointF.toPoint(): Point
```

Returns a `https://developer.android.com/reference/android/graphics/Point.html` representation of this point.

### Point.toPointF

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:toPointF) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Point.toPointF(): PointF
```

Returns a `https://developer.android.com/reference/android/graphics/PointF.html` representation of this point.

### RectF.toRect

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:toRect) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun RectF.toRect(): Rect
```

Returns a `https://developer.android.com/reference/android/graphics/Rect.html` representation of this rectangle. The resulting rect will be sized such that this rect can fit within it.

### Rect.toRectF

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:toRectF) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Rect.toRectF(): RectF
```

Returns a `https://developer.android.com/reference/android/graphics/RectF.html` representation of this rectangle.

### Rect.toRegion

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:toRegion) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Rect.toRegion(): Region
```

Returns a `https://developer.android.com/reference/android/graphics/Region.html` representation of this rectangle.

### RectF.toRegion

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:toRegion) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun RectF.toRegion(): Region
```

Returns a `https://developer.android.com/reference/android/graphics/Region.html` representation of this rectangle. The resulting rect will be sized such that this rect can fit within it.

### PorterDuff.Mode.toXfermode

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/PorterDuff.kt+function:toXfermode) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun PorterDuff.Mode.toXfermode(): PorterDuffXfermode
```

Creates a new `https://developer.android.com/reference/android/graphics/PorterDuffXfermode.html` that uses this `https://developer.android.com/reference/android/graphics/PorterDuff.Mode.html` as the alpha compositing or blending mode.

### Shader.transform

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Shader.kt+function:transform) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Shader.transform(block: Matrix.() -> Unit): Unit
```

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Shader).transform(kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Shader.html#getLocalMatrix(android.graphics.Matrix)` and `https://developer.android.com/reference/android/graphics/Shader.html#setLocalMatrix(android.graphics.Matrix)`.

### RectF.transform

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:transform) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun RectF.transform(m: Matrix): RectF
```

Transform this rectangle in place using the supplied `https://developer.android.com/reference/android/graphics/Matrix.html` and returns this rectangle.

### Point.unaryMinus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:unaryMinus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Point.unaryMinus(): Point
```

Returns a new point representing the negation of this point.

### PointF.unaryMinus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Point.kt+function:unaryMinus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun PointF.unaryMinus(): PointF
```

Returns a new point representing the negation of this point.

### Region.unaryMinus

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:unaryMinus) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline operator fun Region.unaryMinus(): Region
```

Returns the negation of this region as a new region.

### Matrix.values

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Matrix.kt+function:values) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Matrix.values(): FloatArray
```

Returns the 9 values of this `https://developer.android.com/reference/android/graphics/Matrix.html` as a new array of floats.

### Canvas.withClip

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Canvas.kt+function:withClip) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Canvas.withClip(clipPath: Path, block: Canvas.() -> Unit): Unit
```

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(android.graphics.Path,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#clipPath(android.graphics.Path)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`.

### Canvas.withClip

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Canvas.kt+function:withClip) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Canvas.withClip(clipRect: Rect, block: Canvas.() -> Unit): Unit
```

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(android.graphics.Rect,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#clipRect(android.graphics.Rect)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`.

### Canvas.withClip

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Canvas.kt+function:withClip) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Canvas.withClip(clipRect: RectF, block: Canvas.() -> Unit): Unit
```

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(android.graphics.RectF,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#clipRect(android.graphics.Rect)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`.

### Canvas.withClip

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Canvas.kt+function:withClip) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Canvas.withClip(
    left: Float,
    top: Float,
    right: Float,
    bottom: Float,
    block: Canvas.() -> Unit
): Unit
```

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#clipRect(android.graphics.Rect)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`.

### Canvas.withClip

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Canvas.kt+function:withClip) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Canvas.withClip(
    left: Int,
    top: Int,
    right: Int,
    bottom: Int,
    block: Canvas.() -> Unit
): Unit
```

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withClip(kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Int,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#clipRect(android.graphics.Rect)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`.

### Canvas.withMatrix

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Canvas.kt+function:withMatrix) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Canvas.withMatrix(matrix: Matrix = Matrix(), block: Canvas.() -> Unit): Unit
```

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withMatrix(android.graphics.Matrix,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#concat(android.graphics.Matrix)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`.

### Canvas.withRotation

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Canvas.kt+function:withRotation) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Canvas.withRotation(
    degrees: Float = 0.0f,
    pivotX: Float = 0.0f,
    pivotY: Float = 0.0f,
    block: Canvas.() -> Unit
): Unit
```

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withRotation(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#rotate(float)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`.

### Canvas.withSave

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

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

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withSave(kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`.

### Canvas.withScale

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Canvas.kt+function:withScale) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Canvas.withScale(
    x: Float = 1.0f,
    y: Float = 1.0f,
    pivotX: Float = 0.0f,
    pivotY: Float = 0.0f,
    block: Canvas.() -> Unit
): Unit
```

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withScale(kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Float,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#scale(float, float)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`.

### Canvas.withSkew

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Canvas.kt+function:withSkew) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Canvas.withSkew(x: Float = 0.0f, y: Float = 0.0f, block: Canvas.() -> Unit): Unit
```

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withSkew(kotlin.Float,kotlin.Float,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#skew(float, float)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`.

### Canvas.withTranslation

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Canvas.kt+function:withTranslation) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline fun Canvas.withTranslation(x: Float = 0.0f, y: Float = 0.0f, block: Canvas.() -> Unit): Unit
```

Wrap the specified `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.Canvas).withTranslation(kotlin.Float,kotlin.Float,kotlin.Function1)` in calls to `https://developer.android.com/reference/android/graphics/Canvas.html#save()`/`https://developer.android.com/reference/android/graphics/Canvas.html#translate(float, float)` and `https://developer.android.com/reference/android/graphics/Canvas.html#restoreToCount(int)`.

### Path.xor

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Path.kt+function:xor) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Path.xor(p: Path): Path
```

Returns the union minus the intersection of two paths as a new `https://developer.android.com/reference/android/graphics/Path.html`.

### Rect.xor

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:xor) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Rect.xor(r: Rect): Region
```

Returns the union minus the intersection of two rectangles as a new region.

### Region.xor

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:xor) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Region.xor(r: Rect): Region
```

Return the union minus the intersection of this region and the specified `https://developer.android.com/reference/android/graphics/Rect.html` as a new region.

### RectF.xor

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Rect.kt+function:xor) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun RectF.xor(r: RectF): Region
```

Returns the union minus the intersection of two rectangles as a new region. The two rectangles are first converted to `https://developer.android.com/reference/android/graphics/Rect.html` using `https://developer.android.com/reference/kotlin/androidx/core/graphics/package-summary#(android.graphics.RectF).toRect()`.

### Region.xor

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Region.kt+function:xor) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
inline infix fun Region.xor(r: Region): Region
```

Return the union minus the intersection of this region and the specified region as a new region.

## Extension properties

### Int.alpha

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:alpha) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorInt Int.alpha: Int
```

Return the alpha component of a color int. This is equivalent to calling:

```kotlin
Color.alpha(myInt)
```

### Long.alpha

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:alpha) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorLong Long.alpha: Float
```

Return the alpha component of a color long. This is equivalent to calling:

```kotlin
Color.alpha(myLong)
```

### Int.blue

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:blue) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorInt Int.blue: Int
```

Return the blue component of a color int. This is equivalent to calling:

```kotlin
Color.blue(myInt)
```

### Long.blue

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:blue) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorLong Long.blue: Float
```

Return the blue component of a color long. This is equivalent to calling:

```kotlin
Color.blue(myLong)
```

### Long.colorSpace

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:colorSpace) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorLong Long.colorSpace: ColorSpace
```

Returns the color space encoded in the specified color long.

### Int.green

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:green) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorInt Int.green: Int
```

Return the green component of a color int. This is equivalent to calling:

```kotlin
Color.green(myInt)
```

### Long.green

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:green) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorLong Long.green: Float
```

Return the green component of a color long. This is equivalent to calling:

```kotlin
Color.green(myLong)
```

### Long.isSrgb

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:isSrgb) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorLong Long.isSrgb: Boolean
```

Indicates whether the color is in the `https://developer.android.com/reference/android/graphics/ColorSpace.Named.html#SRGB` color space.

### Long.isWideGamut

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:isWideGamut) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorLong Long.isWideGamut: Boolean
```

Indicates whether the color is in a `https://developer.android.com/reference/android/graphics/ColorSpace.html` color space.

### Int.luminance

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:luminance) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorInt Int.luminance: Float
```

Returns the relative luminance of a color int, assuming sRGB encoding. Based on the formula for relative luminance defined in WCAG 2.0, W3C Recommendation 11 December 2008.

### Long.luminance

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:luminance) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorLong Long.luminance: Float
```

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

### Int.red

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:red) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorInt Int.red: Int
```

Return the red component of a color int. This is equivalent to calling:

```kotlin
Color.red(myInt)
```

### Long.red

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/graphics/Color.kt+symbol:red) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

```
val @ColorLong Long.red: Float
```

Return the red component of a color long. This is equivalent to calling:

```kotlin
Color.red(myLong)
```