FromFile()

Image::FromFile(const String&, bool) method

Creates an Image object from the specified file.

static SharedPtr<Image> System::Drawing::Image::FromFile(const String &filename, bool use_embedded_color_management=false)

Arguments

ParameterTypeDescription
filenameconst String&A name of the file that contains image data
use_embedded_color_managementboolIGNORED

Return Value

A shared pointer to the created Image object.

See Also