ImagePattern
classin packageklyn.gui.windows
public class ImagePattern
ImagePattern

Raster image paint with repetition on either, both, or neither axis. The source may be a RasterImage (including BitmapImage), a String path, or a FilePath. Logical image resizing and source crops are preserved. Painting captures immutable source pixels, so later bitmap edits do not change an already recorded frame. Sampling uses the nearest source texel.

pattern = ImagePattern("checker.png", "repeat")
print(pattern)
Properties
Modifier and Type Member Description
public property image
image as Object
Raster source or raster file path.
public property repetition
repetition as String
Repeat mode: repeat, repeat-x, repeat-y or no-repeat.
Constructors
Modifier and Type Member Description
public ImagePattern
ImagePattern(image as Object = null, repetition as String = "repeat")
Creates an image pattern.
Methods
Modifier and Type Member Description
public override toString
toString() as String
Describes the source and repetition mode.