Series Transparency setting is ignored when Exporting

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Kevin
Newbie
Newbie
Posts: 6
Joined: Tue Nov 13, 2007 12:00 am

Series Transparency setting is ignored when Exporting

Post by Kevin » Mon Jun 16, 2008 9:07 am

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?

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jun 16, 2008 9:23 am

Hi Kevin,

Yes, you can use Bitmap exporting for transparency. JPEG export doesn't support it.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Kevin
Newbie
Newbie
Posts: 6
Joined: Tue Nov 13, 2007 12:00 am

Post by Kevin » Mon Jun 16, 2008 9:30 am

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

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Mon Jun 23, 2008 11:52 am

Hi Kevin,

yes, export to PNG also keeps the transparency applied.

Janusz_Cichocki
Newbie
Newbie
Posts: 27
Joined: Thu Nov 29, 2007 12:00 am

TRANSPARENCY ANS EXPORT

Post by Janusz_Cichocki » Thu Jul 03, 2008 8:59 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jul 03, 2008 9:10 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Janusz_Cichocki
Newbie
Newbie
Posts: 27
Joined: Thu Nov 29, 2007 12:00 am

transparency in v.8.03

Post by Janusz_Cichocki » Thu Jul 03, 2008 11:56 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Thu Jul 03, 2008 12:47 pm

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;
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Janusz_Cichocki
Newbie
Newbie
Posts: 27
Joined: Thu Nov 29, 2007 12:00 am

transparency in export

Post by Janusz_Cichocki » Thu Jul 03, 2008 4:12 pm

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

Post Reply