Hello everyone,
I’m having an issue with the refresh of a ImageView
control. When I set it’s content with a bitmap I draw on with a Graphics the image turns completely black, and only if I resize the panel which contains it I get to see the correct content. I do something like this
// m_graphPreview is a ImageView
var bmp = new Bitmap(m_graphPreview.Size, PixelFormat.Format32bppRgb);
using (var g = new Graphics(bmp)) {
// Generate image sampling some curve and then using g.DrawLines(pen, polyline.ToArray());
m_graphPreview.Image = bmp;
}
Am I doing something wrong?
Thanks