Android Guides | Samples

Android.Graphics.Outline Class

Defines a simple shape, used for bounding graphical regions.

See Also: Outline

Syntax

[Android.Runtime.Register("android/graphics/Outline", DoNotGenerateAcw=true)]
public sealed class Outline : Object

Remarks

Defines a simple shape, used for bounding graphical regions.

Can be computed for a View, or computed by a Drawable, to drive the shape of shadows cast by a View, or to clip the contents of the View.

See Also

[Android Documentation]

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Graphics.Outline are listed below.

See Also: Object

Public Constructors

Constructs an empty Outline.
Constructs an Outline with a copy of the data in src.

Public Properties

AlphaSingle. Returns the alpha represented by the Outline.
[read-only]
IsEmptyBoolean. Returns whether the Outline is empty.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

CanClip() : Boolean
Returns whether the outline can be used to clip a View.
Set(Outline)
Replace the contents of this Outline with the contents of src.
SetConvexPath(Path)
Sets the Constructs an Outline from a Path.IsConvex.
SetEmpty()
Sets the outline to be empty.
SetOval(Rect)
Convenience for Outline.SetOval(Int32,Int32,Int32,Int32)
SetOval(Int32, Int32, Int32, Int32)
Sets the outline to the oval defined by input rect.
SetRect(Rect)
Convenience for Outline.SetRect(Int32,Int32,Int32,Int32)
SetRect(Int32, Int32, Int32, Int32)
Sets the Outline to the rounded rect defined by the input rect, and corner radius.
SetRoundRect(Rect, Single)
Convenience for Outline.SetRoundRect(Int32,Int32,Int32,Int32,Int32)
SetRoundRect(Int32, Int32, Int32, Int32, Single)
Sets the Outline to the rounded rect defined by the input rect, and corner radius.