Image.Load

Load(string, LoadOptions)

Loads a new image from the specified file.

public static Image Load(string filePath, LoadOptions loadOptions)
ParameterTypeDescription
filePathStringThe file path to load image from.
loadOptionsLoadOptionsThe load options.

Return Value

The loaded drawing.

Examples

Loads a drawing to process and unloads all related resources when dispose is called

using (var image = Aspose.CAD.Image.Load("fileName.dwg", new LoadOptions
{
    UnloadOnDispose = true
}))
{
    // process the drawing
}

See Also


Load(string)

Loads a new image from the specified file.

public static Image Load(string filePath)
ParameterTypeDescription
filePathStringThe file path to load image from.

Return Value

The loaded drawing.

Examples

Loads a drawing to process

using (var image = Aspose.CAD.Image.Load("fileName.dwg"))
{
    // process the drawing
}

See Also


Load(Stream, LoadOptions)

Loads a new image from the specified stream.

public static Image Load(Stream stream, LoadOptions loadOptions)
ParameterTypeDescription
streamStreamThe stream to load image from.
loadOptionsLoadOptionsThe load options.

Return Value

The loaded drawing.

Examples

Loads a drawing to process from corresponding stream and unloads all related resources when dispose is called

using (var image = Aspose.CAD.Image.Load(File.OpenRead("fileName.dwg"), new LoadOptions
{
    UnloadOnDispose = true
}))
{
    // process the drawing
}

See Also


Load(Stream)

Loads a new image from the specified stream.

public static Image Load(Stream stream)
ParameterTypeDescription
streamStreamThe stream to load image from.

Return Value

The loaded drawing.

Examples

Loads a drawing to process from corresponding stream

using (var image = Aspose.CAD.Image.Load(File.OpenRead("fileName.dwg"))
{
    // process the drawing
}

See Also