語言

Canvas.DrawLines 方法

定義

多載

名稱 Description
DrawLines(Single[], Paint)

畫出一系列線。

DrawLines(Single[], Int32, Int32, Paint)

畫出一系列線。

DrawLines(Single[], Paint)

畫出一系列線。

[Android.Runtime.Register("drawLines", "([FLandroid/graphics/Paint;)V", "GetDrawLines_arrayFLandroid_graphics_Paint_Handler")]
public virtual void DrawLines(float[] pts, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawLines", "([FLandroid/graphics/Paint;)V", "GetDrawLines_arrayFLandroid_graphics_Paint_Handler")>]
abstract member DrawLines : single[] * Android.Graphics.Paint -> unit
override this.DrawLines : single[] * Android.Graphics.Paint -> unit

參數

pts
Single[]

繪製點陣列 [x0 y0 x1 y1 x2 y2 ...]

paint
Paint

用來畫點的顏料

屬性

備註

Java 文件 android.graphics.Canvas.drawLines(float[], int, int, android.graphics.Paint)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

DrawLines(Single[], Int32, Int32, Paint)

畫出一系列線。

[Android.Runtime.Register("drawLines", "([FIILandroid/graphics/Paint;)V", "GetDrawLines_arrayFIILandroid_graphics_Paint_Handler")]
public virtual void DrawLines(float[] pts, int offset, int count, Android.Graphics.Paint paint);
[<Android.Runtime.Register("drawLines", "([FIILandroid/graphics/Paint;)V", "GetDrawLines_arrayFIILandroid_graphics_Paint_Handler")>]
abstract member DrawLines : single[] * int * int * Android.Graphics.Paint -> unit
override this.DrawLines : single[] * int * int * Android.Graphics.Paint -> unit

參數

pts
Single[]

繪製點陣列 [x0 y0 x1 y1 x2 y2 ...]

offset
Int32

繪製前可以跳過陣列中的數值。

count
Int32

在跳過「偏移量」後,陣列中要處理的值數。 由於每條線使用4個值,實際繪製的「線」數為(count >> 2)。

paint
Paint

用來畫點的顏料

屬性

備註

畫出一系列線。 每行取自 pts 陣列中連續的 4 個值。 因此,若要繪製一條線,陣列必須包含至少 4 個值。 這邏輯上等同於繪製陣列的過程:drawLine(pts[0], pts[1], pts[2], pts[3]),接著是drawLine(pts[4], pts[5], pts[6], pts[7]),依此類推。

Java 文件 android.graphics.Canvas.drawLines(float[], int, int, android.graphics.Paint)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於