Share via


ICanvas.DrawImage(IImage, Single, Single, Single, Single) Method

Definition

Draws an image onto the canvas.

public:
 void DrawImage(Microsoft::Maui::Graphics::IImage ^ image, float x, float y, float width, float height);
public void DrawImage (Microsoft.Maui.Graphics.IImage image, float x, float y, float width, float height);
abstract member DrawImage : Microsoft.Maui.Graphics.IImage * single * single * single * single -> unit
Public Sub DrawImage (image As IImage, x As Single, y As Single, width As Single, height As Single)

Parameters

image
IImage

Image to display

x
Single

Top left corner x coordinate.

y
Single

Top left corner y coordinate.

width
Single

Width of the image.

height
Single

Height of the image.

Applies to