Decided to write a simple game using C#.
I know that it is not the best choice for the task but I have my reasons to do it.
Board for my game consists of 30 pieces.
Every piece is a bitmap 30x30 pixels.
This is how I create my board now:
Bitmap result = new Bitmap(30 * 30, 30 * 30);
for (int i = 0; i < 30; i++)
for (int j = 0; j < 30; j++)
Bitmap small = new Bitmap(aImageList.Images[someIndex]);
for (int k = 0; k < 30; k ++)
for (int l = 0; l < 30; l ++)
result.SetPixel(i * 30 + k, j * 30 + l, small.GetPixel(k, l));
It takes ages to do it.
How can I make the same task faster?