CadRasterizationOptionsRenderResult Field

Rendering result handler.

Namespace:  Aspose.CAD.ImageOptions
Assembly:  Aspose.CAD (in Aspose.CAD.dll) Version: 21.3
Syntax
public CadRasterizationOptionsCadRenderHandler RenderResult

Field Value

Type: CadRasterizationOptionsCadRenderHandler
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