I have a need to hand the image in a chart control to another object, so I tried using the RenderToHBitmap method on the ImageExport sub-object. The image data did indeed get handed to the other object, but it had the side-effect that the chart object seemed to “lose” its image, i.e. its contents disappeared, and whatever was behind the window containing it appeared there instead. I tried doing a Refresh and an Invalidate to make the chart control repaint, but neither had any effect. I have worked around this by using RenderToBitmap instead, and this works fine with no side-effect. But I just wonder – is this a problem with the chart, or with me?
Imported from legacy forums. Posted by Steve (had 2023 views)