Page 1 of 1

Series Transparency setting is ignored when Exporting

Posted: Mon Jun 16, 2008 9:07 am
by 10547355
When exporting a chart to an image (e.g. to PNG, JPEG) the series Transparency setting is ignored. The series are output with no transparency i.e. opaque. This is with TeeChart 8.02.

I have tried various series types including bubble and gantt with no success.

Is there a way to get transparency to work when exporting?

Posted: Mon Jun 16, 2008 9:23 am
by narcis
Hi Kevin,

Yes, you can use Bitmap exporting for transparency. JPEG export doesn't support it.

Posted: Mon Jun 16, 2008 9:30 am
by 10547355
It seems that Bitmap is the only export format that supports Transparency. Is that correct?

Why can't other formats support transparency? e.g. PNG

Posted: Mon Jun 23, 2008 11:52 am
by Pep
Hi Kevin,

yes, export to PNG also keeps the transparency applied.

TRANSPARENCY ANS EXPORT

Posted: Thu Jul 03, 2008 8:59 am
by 10547537
I used Teechart v. 7.0 (Delphi 7.0). When exporting BMP it was OK.
with Teechart v. 8.02 (Delphi 7.0) is doesn't work. Transparency is only on the screen. After export to BMP format there is no tranparency.
What has changed ?
Janusz

Posted: Thu Jul 03, 2008 9:10 am
by narcis
Hi Janusz,

This works fine for me here using v8.03 release candidate. I've just sent you the URL to download it. Could you please check if this works fine at your end?

Thanks in advance.

transparency in v.8.03

Posted: Thu Jul 03, 2008 11:56 am
by 10547537
version 8.03.11357
Series1 : TWindRoseSeries
I save screen using :
Chart1.SaveToBmpFile (Name)
There is no tranparency in BMP file :(
(Print Screen works OK)
Janusz

Posted: Thu Jul 03, 2008 12:47 pm
by narcis
Hi Janusz,

I could reproduce the problem here, I'll add it to the defect list to be reviewed. I've checked that using code above doesn't work in v7 either.

Code: Select all

procedure TForm1.Button1Click(Sender: TObject);
begin
  Chart1.SaveToBitmapFile('c:\temp\wr.bmp');
end;
Anyway, you can use code below, I've checked that this exports a bitmap with transparency.

Code: Select all

uses TeeBMPOptions;

procedure TForm1.Button1Click(Sender: TObject);
var tmp: TBMPExportFormat;
begin
  tmp:= TBMPExportFormat.Create;
  tmp.Panel:=Chart1;
  tmp.SaveToFile('c:\temp\Chart1BMP.' + tmp.FileExtension);
  //Chart1.SaveToBitmapFile('c:\temp\wr.bmp');
end;

transparency in export

Posted: Thu Jul 03, 2008 4:12 pm
by 10547537
Hi,
I am so glad. Now it works prefect. I have checked out PCX format
and it keeps transparency too ! Thank you for quick answer
Janusz