Share via


IPattern Interface

Definition

Defines a pattern that can be used to fill shapes on a canvas.

public interface class IPattern
public interface IPattern
type IPattern = interface
Public Interface IPattern
Derived

Properties

Height

Gets the height of the pattern.

StepX

Gets the horizontal step size for repeating the pattern.

StepY

Gets the vertical step size for repeating the pattern.

Width

Gets the width of the pattern.

Methods

Draw(ICanvas)

Draws the pattern onto the specified canvas.

Extension Methods

AsPaint(IPattern, Color)

Converts a pattern to a paint using the specified foreground color.

AsPaint(IPattern)

Converts a pattern to a paint using black as the foreground color.

Applies to