CanSave

Image.CanSave method

Determines whether image can be saved to the specified file format represented by the passed save options.

public bool CanSave(ImageOptionsBase options)
Parameter Type Description
options ImageOptionsBase The save options to use.

Return Value

true if image can be saved to the specified file format represented by the passed save options; otherwise, false.

Examples

Checks whether export is possible to BMP with default options

using (var image = Aspose.CAD.Image.Load("fileName.dwg"))
{
    if (image.CanSave(new BmpOptions()))
    {
        // export to BMP format is possible with this options
    }
}

See Also