Stay organized with collections
Save and categorize content based on your preferences.
PathDashPathEffect
open class PathDashPathEffect : PathEffect
Summary
Public constructors |
Dash the drawn path by stamping it with the specified shape.
|
Public constructors
PathDashPathEffect
PathDashPathEffect(
shape: Path!,
advance: Float,
phase: Float,
style: PathDashPathEffect.Style!)
Dash the drawn path by stamping it with the specified shape. This only applies to drawings when the paint's style is STROKE or STROKE_AND_FILL. If the paint's style is FILL, then this effect is ignored. The paint's strokeWidth does not affect the results.
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# PathDashPathEffect\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPathDashPathEffect\n==================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/graphics/PathDashPathEffect \"View this page in Java\") \n\n```\nopen class PathDashPathEffect : PathEffect\n```\n\n|---|---|------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [android.graphics.PathEffect](/reference/kotlin/android/graphics/PathEffect) ||\n| | ↳ | [android.graphics.PathDashPathEffect](#) |\n\nSummary\n-------\n\n| Nested classes ||\n|---|-----------------------------------------------------------------------------|\n| | [Style](/reference/kotlin/android/graphics/PathDashPathEffect.Style) \u003cbr /\u003e |\n\n| Public constructors ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [PathDashPathEffect](#PathDashPathEffect(android.graphics.Path,%20kotlin.Float,%20kotlin.Float,%20android.graphics.PathDashPathEffect.Style))`(`shape:` `[Path](/reference/kotlin/android/graphics/Path)!`, `advance:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `phase:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `style:` `[PathDashPathEffect.Style](/reference/kotlin/android/graphics/PathDashPathEffect.Style)!`)` Dash the drawn path by stamping it with the specified shape. |\n\n| Inherited functions ||\n|---|---|\n| From class [PathEffect](/reference/kotlin/android/graphics/PathEffect) |------------------------------------------------------------------------------|---------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [finalize](/reference/kotlin/android/graphics/PathEffect#finalize())`()` \u003cbr /\u003e | ||\n\nPublic constructors\n-------------------\n\n### PathDashPathEffect\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nPathDashPathEffect(\n shape: Path!, \n advance: Float, \n phase: Float, \n style: PathDashPathEffect.Style!)\n```\n\nDash the drawn path by stamping it with the specified shape. This only applies to drawings when the paint's style is STROKE or STROKE_AND_FILL. If the paint's style is FILL, then this effect is ignored. The paint's strokeWidth does not affect the results.\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `shape` | [Path](/reference/kotlin/android/graphics/Path)!: The path to stamp along |\n| `advance` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html): spacing between each stamp of shape |\n| `phase` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html): amount to offset before the first shape is stamped |\n| `style` | [PathDashPathEffect.Style](/reference/kotlin/android/graphics/PathDashPathEffect.Style)!: how to transform the shape at each position as it is stamped |"]]