共用方式為


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

影像的高度。

適用於