Image 构造函数

定义

初始化 Image 类的新实例。

public Image ();

注解

以下示例从文件创建新映像

var image = new Image { Source = "picture.png" };

适用于