Table of Contents

Struct ImagePattern

Namespace
Xui.Core.Canvas
Assembly
Xui.Core.dll

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

image IImage

The source image (must be loaded before drawing).

repetition PatternRepeat

Tiling mode; defaults to Repeat.

Fields

Image

The image to tile.

public IImage Image

Field Value

IImage

Repetition

How the image repeats beyond its natural bounds.

public PatternRepeat Repetition

Field Value

PatternRepeat