Condividi tramite


DashPathEffect Constructors

Definition

Overloads

DashPathEffect(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

DashPathEffect(Single[], Single)

The intervals array must contain an even number of entries (>=2), with the even indices specifying the "on" intervals, and the odd indices specifying the "off" intervals.

DashPathEffect(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected DashPathEffect (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Graphics.DashPathEffect : nativeint * Android.Runtime.JniHandleOwnership -> Android.Graphics.DashPathEffect

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

DashPathEffect(Single[], Single)

The intervals array must contain an even number of entries (>=2), with the even indices specifying the "on" intervals, and the odd indices specifying the "off" intervals.

[Android.Runtime.Register(".ctor", "([FF)V", "")]
public DashPathEffect (float[]? intervals, float phase);
[<Android.Runtime.Register(".ctor", "([FF)V", "")>]
new Android.Graphics.DashPathEffect : single[] * single -> Android.Graphics.DashPathEffect

Parameters

intervals
Single[]

array of ON and OFF distances

phase
Single

offset into the intervals array

Attributes

Remarks

The intervals array must contain an even number of entries (>=2), with the even indices specifying the "on" intervals, and the odd indices specifying the "off" intervals. phase is an offset into the intervals array (mod the sum of all of the intervals). The intervals array controls the length of the dashes. The paint's strokeWidth controls the thickness of the dashes. Note: this patheffect only affects drawing with the paint's style is set to STROKE or FILL_AND_STROKE. It is ignored if the drawing is done with style == FILL.

Java documentation for android.graphics.DashPathEffect.DashPathEffect(float[], float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to