Page 1 of 1

Image export resolution

Posted: Tue Jan 24, 2017 9:42 am
by 16479009
Hi,

I find that when I export a chart as an image the resolution decreases, but if I print directly it looks clearly defined. How do I ensure that exported images appear as clearly?

Re: Image export resolution

Posted: Tue Jan 24, 2017 12:45 pm
by 10050769
Hello Sharpenski,

Unfortunately, I can't reproduce the problem you're experiencing. I have exported the chart to different image types (jpeg, gif, png..) and I can see any resolution problems. Could you tell us in which kind image the problem appear?

Thanks in advance,

Re: Image export resolution

Posted: Wed Jan 25, 2017 8:59 am
by 16479009
Basically if i try and export a chart as a large image - say, to fill an entire A4 sheet, the scale is disrupted and the labels etc. appear smaller. Is there a way I can retain the way the chart appears on screen and export it as a larger image (in terms of dimensions)?

Re: Image export resolution

Posted: Wed Jan 25, 2017 11:31 am
by 10050769
Hello Sharpenski,

The code below exports a Chart image without compression with Best quality :

Code: Select all

uses TeExport, TeeJPEG,TeeBmpOptions,jpeg;

procedure TForm1.Button1Click(Sender: TObject);
begin
TeeSaveToJPEGFile( Chart1, 'E:\tmp\VCL\TestImage\mychart.jpg',False,jpBestQuality,100, 5480, 8508 );

end;

procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.View3D := false;
Series1.FillSampleValues(10);
end;
Could you tell me if it fix the problem you're experiencing? If not, please modify the code because we can reproduce the problem here.

Thanks in advance

Re: Image export resolution

Posted: Wed Jan 25, 2017 1:12 pm
by 16479009
Thank you, but the problem is when I export the image. You have an option to alter the size of the image. When I do this the detail in the chart (e.g. labels, title etc.) do not re-scale to fit the rest of the image and appear quite small, even though in the plot they look correct.

Re: Image export resolution

Posted: Wed Jan 25, 2017 4:27 pm
by 10050769
Hello Sharpenski,

Could you tell us which version of TeeChart Pro VCL/FMX are you using?

Also, I have done all the test you mention and I can't reproduce the problem using latest Teechart Pro VCL/FMX V2016.19.

Thanks in advance

Re: Image export resolution

Posted: Wed Feb 01, 2017 11:11 am
by 16479009
I am using 'Teechart 2016 VCL Components'.

Re: Image export resolution

Posted: Thu Feb 02, 2017 7:36 am
by yeray
Hello,
Sharpenski wrote:I am using 'Teechart 2016 VCL Components'.
What build, v2016.18 or v2016.19?

I'd suggest you to read the "printing better" article here.