Image.Load
Contents
[
Hide
]Load(string, LoadOptions)
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
- class LoadOptions
- class Image
- namespace Aspose.CAD
- assembly Aspose.CAD
Load(string)
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
- class Image
- namespace Aspose.CAD
- assembly Aspose.CAD
Load(Stream, LoadOptions)
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
- class LoadOptions
- class Image
- namespace Aspose.CAD
- assembly Aspose.CAD
Load(Stream)
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
- class Image
- namespace Aspose.CAD
- assembly Aspose.CAD