Convert Steema.TeeChart.Export.BitmapFormat to System.Drawi

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Friis
Newbie
Newbie
Posts: 26
Joined: Thu Oct 16, 2014 12:00 am

Convert Steema.TeeChart.Export.BitmapFormat to System.Drawi

Post by Friis » Tue Apr 14, 2015 12:26 pm

Hi,

I'm using the code below to get a bitmap; however, for som other image processing I need to have the bitmap as a "System.Drawing.Image"

Is there a way to convert Steema.TeeChart.Export.BitmapFormat to System.Drawing.Image ??

Code: Select all

Steema.TeeChart.Export.BitmapFormat bitMap = tChart1.Export.Image.Bitmap;
bitMap.Height = tChart1.Height;
bitMap.Width = tChart1.Width;

Christopher
Guru
Posts: 1603
Joined: Fri Nov 15, 2002 12:00 am

Re: Convert Steema.TeeChart.Export.BitmapFormat to System.Drawi

Post by Christopher » Wed Apr 15, 2015 9:38 am

Hello!

It's probably easier to try something like this:

Code: Select all

Image image = tChart1.Bitmap;
Best Regards,
Christopher Ireland / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Instructions - How to post in this forum

Post Reply