Image Control degrade image.

Stimulsoft Reports.NET discussion
Post Reply
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Image Control degrade image.

Post by amitkaushik »

Hi,

I try to load image in image control dynamicly, it works but the quality of image degrade.
I use various image format even like jpeg, emf, png, bmp.

And when I save this file as pdf it also effect that.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Image Control degrade image.

Post by HighAley »

Hello.
amitkaushik wrote:I try to load image in image control dynamicly, it works but the quality of image degrade.
I use various image format even like jpeg, emf, png, bmp.

And when I save this file as pdf it also effect that.
You should change the Image resolution property of the PDF export settings. It is 100 dpi by default.

Thank you.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Image Control degrade image.

Post by amitkaushik »

Hi,
I made the changes in PDF export settings, but result is same. my code is:

StiPdfExportSettings settings = new StiPdfExportSettings();
settings.ImageQuality = 2.5F;
settings.ImageResolution = 200;
report.ExportDocument(Stimulsoft.Report.StiExportFormat.Pdf,ReportPath,settings);

Thank you
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Image Control degrade image.

Post by HighAley »

Hello.

The ImageQuality couldn't be more then 1.
Please, read the '19.4.1.6 Export Settings' section of the Stimulsoft Reports Universal User Manual.

Thank you.
amitkaushik
Posts: 74
Joined: Fri Dec 07, 2012 11:35 am

Re: Image Control degrade image.

Post by amitkaushik »

Thanks, I got that.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Image Control degrade image.

Post by HighAley »

Hello.

We are always glad to help you.
Let us know if you will need any additional help.

Thank you.
Post Reply