PaintPattern 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.
Represents a pattern that applies a paint to a wrapped pattern for filling shapes.
public ref class PaintPattern : Microsoft::Maui::Graphics::IPattern
public class PaintPattern : Microsoft.Maui.Graphics.IPattern
type PaintPattern = class
interface IPattern
Public Class PaintPattern
Implements IPattern
- Inheritance
-
PaintPattern
- Implements
Constructors
| PaintPattern(IPattern) |
Initializes a new instance of the PaintPattern class with the specified wrapped pattern. |
Properties
| Height |
Gets the height of the pattern, which is the height of the wrapped pattern or 0 if there is no wrapped pattern. |
| Paint |
Gets or sets the paint to apply to the wrapped pattern. |
| StepX |
Gets the horizontal step size for repeating the pattern, which is the step X of the wrapped pattern or 0 if there is no wrapped pattern. |
| StepY |
Gets the vertical step size for repeating the pattern, which is the step Y of the wrapped pattern or 0 if there is no wrapped pattern. |
| Width |
Gets the width of the pattern, which is the width of the wrapped pattern or 0 if there is no wrapped pattern. |
| Wrapped |
Gets the wrapped pattern that this pattern applies a paint to. |
Methods
| Draw(ICanvas) |
Draws the pattern onto the specified canvas with the current paint. |
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. |