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)
- {
- 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();
- }