Share via


PictureCanvas(Single, Single, Single, Single) Constructor

Definition

Initializes a new instance of the PictureCanvas class with the specified dimensions.

public:
 PictureCanvas(float x, float y, float width, float height);
public PictureCanvas(float x, float y, float width, float height);
new Microsoft.Maui.Graphics.PictureCanvas : single * single * single * single -> Microsoft.Maui.Graphics.PictureCanvas
Public Sub New (x As Single, y As Single, width As Single, height As Single)

Parameters

x
Single

The x-coordinate of the top-left corner of the canvas.

y
Single

The y-coordinate of the top-left corner of the canvas.

width
Single

The width of the canvas.

height
Single

The height of the canvas.

Applies to