We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Dashed line exported wrong as continuous in rotated images

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)

@subGm

I have observed the behaviour and a ticket with ID CADNET-8344 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.