Most visited

Recently visited

Added in API level 1

PathDashPathEffect

public class PathDashPathEffect
extends PathEffect

java.lang.Object
   ↳ android.graphics.PathEffect
     ↳ android.graphics.PathDashPathEffect


Summary

Nested classes

枚举 PathDashPathEffect.Style

 

Public constructors

PathDashPathEffect(Path shape, float advance, float phase, PathDashPathEffect.Style style)

用指定的形状冲压绘制的路径。

Inherited methods

From class android.graphics.PathEffect
From class java.lang.Object

Public constructors

PathDashPathEffect

Added in API level 1
PathDashPathEffect (Path shape, 
                float advance, 
                float phase, 
                PathDashPathEffect.Style style)

用指定的形状冲压绘制的路径。 这仅适用于绘图风格为STROKE或STROKE_AND_FILL时的绘图。 如果油漆的风格是FILL,那么这个效果将被忽略。 paint的strokeWidth不影响结果。

Parameters
shape Path: The path to stamp along
advance float: spacing between each stamp of shape
phase float: amount to offset before the first shape is stamped
style PathDashPathEffect.Style: how to transform the shape at each position as it is stamped

Hooray!