CadRasterizationOptions.RenderResult

CadRasterizationOptions.RenderResult field

Rendering result handler.

public CadRenderHandler RenderResult;

Examples

Sets up error handler to catch all export errors and prints them to STDOUT

using (var image = Aspose.CAD.Image.Load("fileName.dwg"))
{
    image.Save("targetFile.bmp", new BmpOptions()
    {
        VectorRasterizationOptions = new CadRasterizationOptions()
        {
            RenderResult = result =>
            {
                if (!result.IsRenderComplete)
                {
                    foreach (var resultFailure in result.Failures)
                    {
                        Console.WriteLine($"Error: {resultFailure.Message} (error code {resultFailure.RenderCode})");
                    }
                }
            }
        }
    });
}

See Also