Stay organized with collections
Save and categorize content based on your preferences.
Op
class Op
The logical operations that can be performed when combining two paths.
Summary
Enum values |
Subtract the second path from the first path.
|
Intersect the two paths.
|
Subtract the first path from the second path.
|
Union (inclusive-or) the two paths.
|
Exclusive-or the two paths.
|
Enum values
DIFFERENCE
enum val DIFFERENCE : Path.Op
Subtract the second path from the first path.
INTERSECT
enum val INTERSECT : Path.Op
Intersect the two paths.
REVERSE_DIFFERENCE
enum val REVERSE_DIFFERENCE : Path.Op
Subtract the first path from the second path.
UNION
enum val UNION : Path.Op
Union (inclusive-or) the two paths.
XOR
enum val XOR : Path.Op
Exclusive-or the two paths.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# Path.Op\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOp\n===\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/Path.Op \"View this page in Java\") \n\n```\nclass Op\n```\n\n|---|---|-------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[android.graphics.Path.Op](#)\\\u003e ||\n| | ↳ | [android.graphics.Path.Op](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Path.Op.DIFFERENCE](#ENUM_VALUE:DIFFERENCE), [Path.Op.INTERSECT](#ENUM_VALUE:INTERSECT), [Path.Op.REVERSE_DIFFERENCE](#ENUM_VALUE:REVERSE_DIFFERENCE), [Path.Op.UNION](#ENUM_VALUE:UNION), [Path.Op.XOR](#ENUM_VALUE:XOR) |--------------------------------------------------------------|-----------------------------------------------| | [Path.Op.DIFFERENCE](#ENUM_VALUE:DIFFERENCE) | Subtract the second path from the first path. | | [Path.Op.INTERSECT](#ENUM_VALUE:INTERSECT) | Intersect the two paths. | | [Path.Op.REVERSE_DIFFERENCE](#ENUM_VALUE:REVERSE_DIFFERENCE) | Subtract the first path from the second path. | | [Path.Op.UNION](#ENUM_VALUE:UNION) | Union (inclusive-or) the two paths. | | [Path.Op.XOR](#ENUM_VALUE:XOR) | Exclusive-or the two paths. | |\n\nThe logical operations that can be performed when combining two paths.\n\nSummary\n-------\n\n| Enum values ||\n|----------------------------------------------------------------------------------------------------|---|\n| [DIFFERENCE](#ENUM_VALUE:DIFFERENCE) Subtract the second path from the first path. |\n| [INTERSECT](#ENUM_VALUE:INTERSECT) Intersect the two paths. |\n| [REVERSE_DIFFERENCE](#ENUM_VALUE:REVERSE_DIFFERENCE) Subtract the first path from the second path. |\n| [UNION](#ENUM_VALUE:UNION) Union (inclusive-or) the two paths. |\n| [XOR](#ENUM_VALUE:XOR) Exclusive-or the two paths. |\n\nEnum values\n-----------\n\n### DIFFERENCE\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val DIFFERENCE : Path.Op\n```\n\nSubtract the second path from the first path. \n\n### INTERSECT\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val INTERSECT : Path.Op\n```\n\nIntersect the two paths. \n\n### REVERSE_DIFFERENCE\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val REVERSE_DIFFERENCE : Path.Op\n```\n\nSubtract the first path from the second path. \n\n### UNION\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val UNION : Path.Op\n```\n\nUnion (inclusive-or) the two paths. \n\n### XOR\n\nAdded in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val XOR : Path.Op\n```\n\nExclusive-or the two paths."]]