Lingua

RecordingCanvas.DrawRect Method

Definition

Overloads

Name Description
DrawRect(Rect, Paint)

Draw the specified Rect using the specified Paint.

DrawRect(RectF, Paint)

Draw the specified Rect using the specified paint.

DrawRect(Single, Single, Single, Single, Paint)

Draw the specified Rect using the specified paint.

DrawRect(Rect, Paint)

Draw the specified Rect using the specified Paint.

[Android.Runtime.Register("drawRect", "(Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "", ApiSince=29)]
public override sealed void DrawRect(Android.Graphics.Rect r, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawRect", "(Landroid/graphics/Rect;Landroid/graphics/Paint;)V", "", ApiSince=29)>]
override this.DrawRect : Android.Graphics.Rect * Android.Graphics.Paint -> unit

Parameters

r
Rect
paint
Paint
Attributes

Remarks

Draw the specified Rect using the specified Paint. The rectangle will be filled or framed based on the Style in the paint.

Android reference for android.graphics.RecordingCanvas.drawRect.

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

DrawRect(RectF, Paint)

Draw the specified Rect using the specified paint.

[Android.Runtime.Register("drawRect", "(Landroid/graphics/RectF;Landroid/graphics/Paint;)V", "", ApiSince=29)]
public override sealed void DrawRect(Android.Graphics.RectF rect, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawRect", "(Landroid/graphics/RectF;Landroid/graphics/Paint;)V", "", ApiSince=29)>]
override this.DrawRect : Android.Graphics.RectF * Android.Graphics.Paint -> unit

Parameters

rect
RectF
paint
Paint
Attributes

Remarks

Draw the specified Rect using the specified paint. The rectangle will be filled or framed based on the Style in the paint.

Android reference for android.graphics.RecordingCanvas.drawRect.

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

DrawRect(Single, Single, Single, Single, Paint)

Draw the specified Rect using the specified paint.

[Android.Runtime.Register("drawRect", "(FFFFLandroid/graphics/Paint;)V", "", ApiSince=29)]
public override sealed void DrawRect(float left, float top, float right, float bottom, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawRect", "(FFFFLandroid/graphics/Paint;)V", "", ApiSince=29)>]
override this.DrawRect : single * single * single * single * Android.Graphics.Paint -> unit

Parameters

left
Single

The left side of the rectangle to be drawn

top
Single

The top side of the rectangle to be drawn

right
Single

The right side of the rectangle to be drawn

bottom
Single

The bottom side of the rectangle to be drawn

paint
Paint
Attributes

Remarks

Draw the specified Rect using the specified paint. The rectangle will be filled or framed based on the Style in the paint.

Android reference for android.graphics.RecordingCanvas.drawRect.

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