# Canvas.EdgeType

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Deprecated in[API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# EdgeType

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/graphics/Canvas.EdgeType "View this page in Java")  

```
class EdgeType
```

|---|---|----------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                          |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[android.graphics.Canvas.EdgeType](https://developer.android.com/reference/kotlin/android/graphics/Canvas.EdgeType#)\> ||
|   | ↳ | [android.graphics.Canvas.EdgeType](https://developer.android.com/reference/kotlin/android/graphics/Canvas.EdgeType#) |

|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [Canvas.EdgeType.AA](https://developer.android.com/reference/kotlin/android/graphics/Canvas.EdgeType#ENUM_VALUE:AA),[Canvas.EdgeType.BW](https://developer.android.com/reference/kotlin/android/graphics/Canvas.EdgeType#ENUM_VALUE:BW) |---------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------| | [Canvas.EdgeType.AA](https://developer.android.com/reference/kotlin/android/graphics/Canvas.EdgeType#ENUM_VALUE:AA) | Antialiased: Treat edges by rounding-out, since they may be antialiased | | [Canvas.EdgeType.BW](https://developer.android.com/reference/kotlin/android/graphics/Canvas.EdgeType#ENUM_VALUE:BW) | Black-and-White: Treat edges by just rounding to nearest pixel boundary | |

*** ** * ** ***

| **This enum was deprecated in API level 30.**
|
| quickReject no longer uses this.

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                                                                                   ||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [AA](https://developer.android.com/reference/kotlin/android/graphics/Canvas.EdgeType#ENUM_VALUE:AA) Antialiased: Treat edges by rounding-out, since they may be antialiased |
| [BW](https://developer.android.com/reference/kotlin/android/graphics/Canvas.EdgeType#ENUM_VALUE:BW) Black-and-White: Treat edges by just rounding to nearest pixel boundary |

## Enum values

### AA

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val AA : Canvas.EdgeType
```

**Deprecated:** *Deprecated in Java.*

Antialiased: Treat edges by rounding-out, since they may be antialiased  

### BW

Added in[API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val BW : Canvas.EdgeType
```

**Deprecated:** *Deprecated in Java.*

Black-and-White: Treat edges by just rounding to nearest pixel boundary