Im not even sure this question is in the right category.
I really need a faster version of this function, and Im too nooby to transfer the online examples into my code:
- void LayerShow (Color[,] layer) // Shows a layer in the panel.
- {
- for (int y = 0; y < CanvasDimY; y++)
- {
- for (int x = 0; x < CanvasDimX; x++)
- {
- image.SetPixel(x, y, layer[x, y]);
- }
- }
- PanelCanvas.BackgroundImage = image;
- PanelCanvas.Refresh();
- }

Amit GuptaRank #190 · 12.8K reputationPosted Jun 20, 2020, 12:52 AM EDT
Steen Pedersen11 reputationPosted Jun 20, 2020, 12:58 AM EDT