[ Web Proxy ]
URL:
Viewing: https://developer.android.com/reference/android/graphics/Canvas.EdgeType [Back]  [Original]

Canvas.EdgeType  |  API reference  |  Android Developers Skip to main content
Essentials Design & Plan Develop Google Play Blog
Search:
Android Studio
Android Developers [Android Developers]
Stay organized with collections Save and categorize content based on your preferences.
Added in API level 1
Deprecated in API level 30

Canvas.EdgeType


public static final enum Canvas.EdgeType
extends Enum<Canvas.EdgeType>

java.lang.Object
   ↳ java.lang.Enum<android.graphics.Canvas.EdgeType>
     ↳ android.graphics.Canvas.EdgeType


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.

See also:

Summary

Enum values

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 

Public methods

static Canvas.EdgeType valueOf(String name)
static final EdgeType[] values()

Inherited methods

Enum values

AA

Added in API level 1
public static final Canvas.EdgeType AA

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

BW

Added in API level 1
public static final Canvas.EdgeType BW

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

Public methods

valueOf

public static Canvas.EdgeType valueOf (String name)

Parameters
name String

Returns
Canvas.EdgeType

values

public static final EdgeType[] values ()

Returns
EdgeType[]

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 2026-08-03 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 2026-08-03 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page