klyn.gui.windows.ImagePattern.ImagePattern
constructor
public ImagePattern(image as Object = null, repetition as String = "repeat")
Description

Creates an image pattern. Drawing captures the source, not construction.

Parameters
ParameterDescription
imageRaster descriptor or raster file path, or null until assigned.
repetitionRepeating axes, defaulting to both.
Throws
  • ValueException If repetition is unknown.
Example

pattern = ImagePattern("checker.png", "repeat-x")