private void Draw() { TinyRendererWrapper.clear(); TinyRendererWrapper.render(); byte[] pixels = buffer.GetData(); Chart.Source = ImageFactory.GetBitmap(pixels, 800, 800, 2400, PixelFormat.Format24bppRgb); }