Page 1 of 1

Problems with BackgroundImage on Tchart.Pocket

Posted: Wed Oct 03, 2007 7:31 am
by 14045274
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.

Posted: Thu Oct 04, 2007 11:21 am
by narcis
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.