Issue: “.stl” file generated tiff is not properly, orignal file content position change in tiff and compression not apply properly.
sample code:
using (Aspose.CAD.Image image = Aspose.CAD.Image.Load(input))
{
Aspose.CAD.ImageOptions.CadRasterizationOptions rasterizationOptions = new Aspose.CAD.ImageOptions.CadRasterizationOptions();
rasterizationOptions.PageWidth = 2250;
rasterizationOptions.PageHeight = 3300;
var options = new Aspose.CAD.ImageOptions.TiffOptions(Aspose.CAD.FileFormats.Tiff.Enums.TiffExpectedFormat.TiffJpegRgb);
options.VectorRasterizationOptions = rasterizationOptions;
options.ResolutionSettings = new AsposeCad.ResolutionSetting() { HorizontalResolution = 300, VerticalResolution = 300 };
image.Save(output, options);
}
sample file:
Sample_STL.zip (541.3 KB)