Problems with BackgroundImage on Tchart.Pocket

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
MGV
Newbie
Newbie
Posts: 9
Joined: Wed May 23, 2007 12:00 am

Problems with BackgroundImage on Tchart.Pocket

Post by MGV » Wed Oct 03, 2007 7:31 am

Good day!
I want to set BackgroundImage. I do as

TChart1.Panel.Image = pictureBox1.Image;
TChart1.Panel.Gradient.Visible = false;

It works at Framework 2.0, but does't at PocketPC. Application throw null reference exception. I solve the problem at Graphics3DGdiPlus class, method Draw(Rectangle r, Image image, bool transparent) ; I change g.DrawImage(image,r,0,0,image.Width,image.Height,GraphicsUnit.Pixel, null) on g.DrawImage(image,r,0,0,image.Width,image.Height,GraphicsUnit.Pixel, new ImageAttributes());

Please, take this mistake into account in next releases.

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 Oct 04, 2007 11:21 am

Hi MGV,

Thank you very much for letting us know. I've been able to reproduce the problem here and also checked that your fix suggestion solves the issue so I've included it in our sources for the next maintenance release.
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