Hello,
When we export our DXF to JPG, we are missing the information from objects of type “Aligned Dimension”
sample.zip (15.9 KB)
Sample code used
var file = @"D:\sample.dxf";
using (var stream = new MemoryStream(File.ReadAllBytes(file)))
{
using (var ms = new MemoryStream())
{
using (var image = (CadImage) Image.Load(stream))
{
ImageOptionsBase options = new JpegOptions
{
VectorRasterizationOptions = new CadRasterizationOptions
{
BackgroundColor = Color.White,
DrawType = CadDrawTypeMode.UseObjectColor,
AutomaticLayoutsScaling = true,
NoScaling = false,
PageWidth = 1600,
PageHeight = 1600
},
Quality = 90,
CompressionType = JpegCompressionMode.Baseline
};
image.Save(ms, options);
File.WriteAllBytes($@"{file}.jpg", ms.ToArray());
}
}
}