public class 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)| Modifier and Type | Member | Description |
|---|---|---|
| public property | imageimage as Object |
Raster source or raster file path. |
| public property | repetitionrepetition as String |
Repeat mode: repeat, repeat-x, repeat-y or no-repeat. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | ImagePatternImagePattern(image as Object = null, repetition as String = "repeat") |
Creates an image pattern. |