Copy to Clipboard as JPEG

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
jenb
Newbie
Newbie
Posts: 50
Joined: Thu Jun 21, 2007 12:00 am

Copy to Clipboard as JPEG

Post by jenb » Wed Dec 10, 2008 4:37 pm

I am using the CopyToClipboard function as follows:

_tcChart.Export.Image.JPEG.CopyToClipboard()

It is very useful to copy from a displayed chart and then paste into a report etc. But I've noticed that it seems to copy as a bitmap format not a jpeg and the file size after pasting from the clipboard is very large. I tried to export as a metafile but the quality of the image is too poor. Any suggestions?

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 Dec 11, 2008 11:37 am

Hi jenb,

Using any of the commands below in a button click event produce very similar sized charts here. Clipboard chart is a JPEG too as JPEG encoding information is used. We found that file generated from the clipboard image varies slightly depending on the software used for saving it.

Code: Select all

			tChart1.Export.Image.JPEG.CopyToClipboard();
			tChart1.Export.Image.JPEG.Save(fileName); 
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

Post Reply