Hello,
I’m using AsposeCad 21.9.0 for .NET to convert DXF to PNG.
My issue is that dashed lines on DXF are exported like continuous lines in the PNG. This bug occours when the exported image is rotated by 90° (if not rotated or rotated by 180° it’s ok).
my code below
using (Aspose.CAD.Image image = Aspose.CAD.Image.Load(msInput))
{
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
rasterizationOptions.UnitType = UnitType.Millimeter;
rasterizationOptions.DrawType = CadDrawTypeMode.UseObjectColor;
rasterizationOptions.GraphicsOptions.SmoothingMode = Aspose.CAD.SmoothingMode.AntiAlias;
var pngOptions = new Aspose.CAD.ImageOptions.PngOptions();
pngOptions.Rotation = RotateFlipType.Rotate270FlipNone;
pngOptions.VectorRasterizationOptions = rasterizationOptions;
image.Save(msOutput, pngOptions);
}
In this zip the source DXF and the exported PNG image testAspose.zip (24.9 KB)