Load

Image.Load method (1 of 4)

Loads a new image from the specified file.

public static Image Load(string filePath, LoadOptions loadOptions)
Parameter Type Description
filePath String The file path to load image from.
loadOptions LoadOptions The 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


Image.Load method (2 of 4)

Loads a new image from the specified file.

public static Image Load(string filePath)
Parameter Type Description
filePath String The 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


Image.Load method (3 of 4)

Loads a new image from the specified stream.

public static Image Load(Stream stream, LoadOptions loadOptions)
Parameter Type Description
stream Stream The stream to load image from.
loadOptions LoadOptions The 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


Image.Load method (4 of 4)

Loads a new image from the specified stream.

public static Image Load(Stream stream)
Parameter Type Description
stream Stream The 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