Stay organized with collections
Save and categorize content based on your preferences.
EdgeType
class EdgeType
Known Direct Subclasses
Canvas.EdgeType.AA |
Antialiased: Treat edges by rounding-out, since they may be antialiased
|
Canvas.EdgeType.BW |
Black-and-White: Treat edges by just rounding to nearest pixel boundary
|
|
Constant values used as parameters to quickReject()
calls. These values specify how much space around the shape should be accounted for, depending on whether the shaped area is antialiased or not.
Summary
Enum values |
Antialiased: Treat edges by rounding-out, since they may be antialiased
|
Black-and-White: Treat edges by just rounding to nearest pixel boundary
|
Enum values
AA
enum val AA : Canvas.EdgeType
Deprecated: Deprecated in Java.
Antialiased: Treat edges by rounding-out, since they may be antialiased
BW
enum val BW : Canvas.EdgeType
Deprecated: Deprecated in Java.
Black-and-White: Treat edges by just rounding to nearest pixel boundary
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,["# Canvas.EdgeType\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \nDeprecated in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nEdgeType\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/Canvas.EdgeType \"View this page in Java\") \n\n```\nclass EdgeType\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.Canvas.EdgeType](#)\\\u003e ||\n| | ↳ | [android.graphics.Canvas.EdgeType](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [Canvas.EdgeType.AA](#ENUM_VALUE:AA), [Canvas.EdgeType.BW](#ENUM_VALUE:BW) |--------------------------------------|-------------------------------------------------------------------------| | [Canvas.EdgeType.AA](#ENUM_VALUE:AA) | Antialiased: Treat edges by rounding-out, since they may be antialiased | | [Canvas.EdgeType.BW](#ENUM_VALUE:BW) | Black-and-White: Treat edges by just rounding to nearest pixel boundary | |\n\n*** ** * ** ***\n\n| **This enum was deprecated in API level 30.**\n|\n| quickReject no longer uses this.\n\nConstant values used as parameters to `quickReject()` calls. These values specify how much space around the shape should be accounted for, depending on whether the shaped area is antialiased or not.\n\nSummary\n-------\n\n| Enum values ||\n|----------------------------------------------------------------------------------------------|---|\n| [AA](#ENUM_VALUE:AA) Antialiased: Treat edges by rounding-out, since they may be antialiased |\n| [BW](#ENUM_VALUE:BW) Black-and-White: Treat edges by just rounding to nearest pixel boundary |\n\nEnum values\n-----------\n\n### AA\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val AA : Canvas.EdgeType\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nAntialiased: Treat edges by rounding-out, since they may be antialiased \n\n### BW\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val BW : Canvas.EdgeType\n```\n\n**Deprecated:** *Deprecated in Java.*\n\nBlack-and-White: Treat edges by just rounding to nearest pixel boundary"]]