Transparency is not correctly exported to some formats

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jeff
Newbie
Newbie
Posts: 22
Joined: Thu Nov 30, 2006 12:00 am

Transparency is not correctly exported to some formats

Post by Jeff » Mon Sep 24, 2007 11:39 pm

Dear support:

I noticed that transparent color is not correctly exported to some image formats, such as PDF, EPS, HTM, and GIF (which I assume is due to the number of colors supported by GIF format). Any fixes?

Thanks.

Jeff

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

Post by Narcís » Tue Sep 25, 2007 9:13 am

Hi Jeff,

Yes, that's right, transparency exporting is not supported. I've added your request to our wish-list to be considered for inclusion for future releases.
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

drrms
Newbie
Newbie
Posts: 4
Joined: Thu Apr 29, 2010 12:00 am

Re: Transparency is not correctly exported to some formats

Post by drrms » Wed Jun 16, 2010 5:00 pm

Hello.

This issue has been pending now for nearly 3 years. Can it PLEASE be addressed?

Longingly,

Richard.

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Transparency is not correctly exported to some formats

Post by Sandra » Thu Jun 17, 2010 10:49 am

Hello Richard,

I have tested your bug and I confirm that when you export image as GIF format, now works fine using last version of TeeChart .Net.
Moreover, I have increased and modified feature request (TF02012471), and we try to solve problem of other formats (PDF,HTM,EPS) to be considered for inclusion in future releases

Thanks,
Best Regards,
Sandra Pazos / 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

drrms
Newbie
Newbie
Posts: 4
Joined: Thu Apr 29, 2010 12:00 am

Re: Transparency is not correctly exported to some formats

Post by drrms » Tue Jul 20, 2010 12:03 pm

Has there been any progress on this issue?

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Transparency is not correctly exported to some formats

Post by Sandra » Tue Jul 20, 2010 12:16 pm

Hello drrms,


I am sorry, not yet


Thanks,
Best Regards,
Sandra Pazos / 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

Richard
Newbie
Newbie
Posts: 7
Joined: Tue May 05, 2009 12:00 am

Re: Transparency is not correctly exported to some formats

Post by Richard » Tue Jul 20, 2010 2:26 pm

Sandra wrote:Hello Richard,

I have tested your bug and I confirm that when you export image as GIF format, now works fine using last version of TeeChart .Net.
Moreover, I have increased and modified feature request (TF02012471), and we try to solve problem of other formats (PDF,HTM,EPS) to be considered for inclusion in future releases

Thanks,
Hello.
We have tried the latest TeeChart version and made simple project, that exports chart with transparent background to different formats. All formats, including GIF still comes with black background, instead of transparent. Project archive and gif example in the attach.
Attachments
SteemaTestProject.rar
Sample project
(24.14 KiB) Downloaded 637 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Transparency is not correctly exported to some formats

Post by Sandra » Wed Jul 21, 2010 12:23 pm

Hello Richard,

I tested your project, and I foun that changing next line of code:

Code: Select all

TChart.Panel.Color = Color.Transparent;
for it line:

Code: Select all

TChart.Panel.Transparent = true;
And adding in ExportButton it:

Code: Select all

private void ExportButton_Click(object sender, EventArgs e)
        {
            Steema.TeeChart.Drawing.BufferStyle buffer = TChart.Graphics3D.BufferStyle;
            TChart.Graphics3D.BufferStyle = Steema.TeeChart.Drawing.BufferStyle.None;
			switch (ComboBox.SelectedIndex)
			{
				case 0:
					Export(new BitmapFormat(TChart.Chart));
					break;
				case 1:
					Export(new GIFFormat(TChart.Chart));
					break;
				case 2:
					Export(new JPEGFormat(TChart.Chart));
					break;
				case 3:
					Export(new PNGFormat(TChart.Chart));
					break;
			}
            TChart.Graphics3D.BufferStyle = buffer;
		}
Background color seems its transparent now. Could you please, check if you are changing first line of code for second line, works fine for you?

I hope will helps.

Thanks,
Best Regards,
Sandra Pazos / 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

Richard
Newbie
Newbie
Posts: 7
Joined: Tue May 05, 2009 12:00 am

Re: Transparency is not correctly exported to some formats

Post by Richard » Thu Dec 30, 2010 3:18 pm

Hi.
We have trued suggested solution. Attached archive contains four different outputs. The result is different from what was expected. Bmp, gif, jpg does not present transparency at all. Png gives transparency but renders text using some different font.
Attachments
export.rar
Four export results
(117.61 KiB) Downloaded 650 times

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Transparency is not correctly exported to some formats

Post by Sandra » Thu Dec 30, 2010 4:30 pm

Hello Richard,
I could check your problems with exporting and I have added these in bug list report with number [TF02015339]. We will try to fix it for next maintenance releases of TeeChart.Net.

Thanks,
Best Regards,
Sandra Pazos / 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

Post Reply