Images DPI problem

Stimulsoft Reports.NET discussion
Post Reply
_Alex_74_
Posts: 25
Joined: Mon Dec 22, 2008 6:00 am

Images DPI problem

Post by _Alex_74_ »

Hello!

I've a big problem with output of images and their resolution.
Small images can take too much place because of higher resolution and bigger images are to smal because of lower resolution.
As workaround I can resample Images to the same resolution, i.e. to 72 DPI, but the printig quality is very bad.
We doing scan and print same images, so if we scan at 300 DPI and print with 600 DPI we would like to have better quality as with images with 72 DPI because downsampling kills some important informations.

It would be nice to have some IMAGE parameters:
- USE DPI
- ASSUME DPI (take in to account if the image does not have DPI-Information inside).

Thanks in advice.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Images DPI problem

Post by Ivan »

Dear, Alexander.

Can you please describe your task in details. And, if possible, send us a sample.

Waiting for your reply.
Thank you.
_Alex_74_
Posts: 25
Joined: Mon Dec 22, 2008 6:00 am

Images DPI problem

Post by _Alex_74_ »

Thank you!

Report-example DPIReport.zip is send per mail at .
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Images DPI problem

Post by Ivan »

Hello,
I've a big problem with output of images and their resolution.
Small images can take too much place because of higher resolution and
bigger images are to smal because of lower resolution.
Please write following code in the GetImageData event of image:

Code: Select all

   (sender as StiImage).MultipleFactor *= 100f / (sender as StiImage).ImageToDraw.HorizontalResolution;
Please check the "DPIReport modifyed.mrt" in attachment.

Thank you.
Attachments
206.DPIReport modifyed.zip
(6.85 KiB) Downloaded 280 times
Post Reply