System::Drawing::Graphics::FromImage 方法

Graphics::FromImage method

从指定的图像创建一个新的 Graphics 对象。

static SharedPtr<Graphics> System::Drawing::Graphics::FromImage(const SharedPtr<Image> &image)
参数类型描述
imageconst SharedPtr<Image>&一个 Image 对象,用于创建 Graphics 对象

ReturnValue

创建的 Graphics 对象

另见