Share via


PicturePattern Class

Definition

Represents a pattern that draws a picture repeatedly.

public ref class PicturePattern : Microsoft::Maui::Graphics::AbstractPattern
public class PicturePattern : Microsoft.Maui.Graphics.AbstractPattern
type PicturePattern = class
    inherit AbstractPattern
Public Class PicturePattern
Inherits AbstractPattern
Inheritance
PicturePattern

Constructors

PicturePattern(IPicture, Single, Single)

Initializes a new instance of the PicturePattern class with the specified picture and step sizes.

PicturePattern(IPicture)

Initializes a new instance of the PicturePattern class with the specified picture. Uses the picture's dimensions as step sizes.

Properties

Height

Gets the height of the pattern.

(Inherited from AbstractPattern)
StepX

Gets the horizontal step size for repeating the pattern.

(Inherited from AbstractPattern)
StepY

Gets the vertical step size for repeating the pattern.

(Inherited from AbstractPattern)
Width

Gets the width of the pattern.

(Inherited from AbstractPattern)

Methods

Draw(ICanvas)

Draws the picture 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