Struct ImagePattern
Describes an image-based fill or stroke pattern — the Canvas API equivalent of a
CanvasPattern returned by createPattern(image, repetition).
Pass to SetFill(ImagePattern) or SetStroke(ImagePattern) to paint paths with a tiled image.
public ref struct ImagePattern
- Inherited Members
Constructors
ImagePattern(IImage, PatternRepeat)
public ImagePattern(IImage image, PatternRepeat repetition = PatternRepeat.Repeat)
Parameters
imageIImageThe source image (must be loaded before drawing).
repetitionPatternRepeatTiling mode; defaults to Repeat.
Fields
Image
The image to tile.
public IImage Image
Field Value
Repetition
How the image repeats beyond its natural bounds.
public PatternRepeat Repetition