ICanvas.DrawImage(IImage, Single, Single, Single, Single) 方法

定义

将图像绘制到画布上。

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)

参数

image
IImage

要显示的图像

x
Single

左上角 x 坐标。

y
Single

左上角 y 坐标。

width
Single

图像的宽度。

height
Single

图像的高度。

适用于