FromImage()

Graphics::FromImage(const SharedPtr<Image>&) method

Creates a new Graphics object from the specified image.

static SharedPtr<Graphics> System::Drawing::Graphics::FromImage(const SharedPtr<Image> &image)

Arguments

ParameterTypeDescription
imageconst SharedPtr<Image>&An Image object from which a Graphics object should be created

Return Value

The created Graphics object

See Also