Free Support Forum - aspose.com

CadRasterizationOptions pageWidth and pageHeight - What is the default value?

What is the default CadRasterizationOptions pageWidth and pageHeight value if for-example:

I convert an STL file to JPEG.
I only set the rasterizationOptions pageWidth.
No pageHeight.

Image image = Image.load(sourceFile.toString());
CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();
float pw = 500;
rasterizationOptions.setPageWidth(pw);

JpegOptions options = new JpegOptions();
options.setVectorRasterizationOptions(rasterizationOptions);

image.save(targetFile.toString(), options);

@franciss

There is no default value and it is something that you will set as per your need and requirements. You can set some values yourself and consider any value to be default as per your case. I suggest you to please visit this documentation section link as well.

thank you for the response

@franciss

You are always welcome.