Problems with BackgroundImage on Tchart.Pocket
Posted: 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.
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.