AbstractPattern Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a base implementation for pattern types that can be used to fill shapes.
public ref class AbstractPattern abstract : Microsoft::Maui::Graphics::IPattern
public abstract class AbstractPattern : Microsoft.Maui.Graphics.IPattern
type AbstractPattern = class
interface IPattern
Public MustInherit Class AbstractPattern
Implements IPattern
- Inheritance
-
AbstractPattern
- Derived
- Implements
Constructors
| AbstractPattern(Single, Single, Single, Single) |
Initializes a new instance of the AbstractPattern class with the specified dimensions and step sizes. |
| AbstractPattern(Single, Single) |
Initializes a new instance of the AbstractPattern class with the specified dimensions. |
| AbstractPattern(Single) | |
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) |
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. |