.jpg output quality

If you have a CAD-related task, describe it here and we will answer if we have a solution.

Moderators: SDS, support, admin

Post Reply
CC-D3
Posts: 3
Joined: 06 Jan 2010, 22:25

.jpg output quality

Post by CC-D3 » 06 Jan 2010, 22:44

Is there a way to adjust the output quality/resolution (compression ratio) for the .jpg output using the CADImport.Net Tools?

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Re: .jpg output quality

Post by support » 08 Jan 2010, 11:57

Hello.
You can adjust resolution of the output raster file. Please try File -> Save Picture from main menu of Editor or Viewer demo.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

CC-D3
Posts: 3
Joined: 06 Jan 2010, 22:25

Re: .jpg output quality

Post by CC-D3 » 08 Jan 2010, 19:51

What properties of SetRasterSizeForm sets the cell size of the output?

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Re: .jpg output quality

Post by support » 11 Jan 2010, 11:41

Hello.
There aren't properties within SetRasterSizeForm class to set the cell size of output. SetRasterSizeForm.ImageSize property specifies this parameter within cadImage.SaveToFile method in the demo application, but this property is read only. If you want to set size of Image programmatically, please use cadImage.SaveToFile method and specify its DRect parameter.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

CC-D3
Posts: 3
Joined: 06 Jan 2010, 22:25

Re: .jpg output quality

Post by CC-D3 » 11 Jan 2010, 19:45

Thank you for you reply. However, I would like to adjust the image quality (compression ratio) without adjusting the image dimensions. Sounds as if the cadImage.SaveToFile method is using a fixed compression ratio for .jpg files, based on the DRect Height and Width properties. So the image quality cannot be adjusted without changing the image dimensions, is this correct?

support
Posts: 3253
Joined: 30 Mar 2005, 11:36
Contact:

Re: .jpg output quality

Post by support » 14 Jan 2010, 12:33

Raster image is technically characterized by the width and height of the image in pixels. Setting Drect parameter within cadImage.SaveToFile method will affect number of the pixels.

Alexander.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply