This is how I'm doing it:
Code:
Bitmap bit = new Bitmap(mapWidth, mapHeight);
using (System.Drawing.Graphics graphics = System.Drawing.Graphics.FromImage(bit))
{
for (int y = 0; y < mapHeight; y += 32)
{
for (int x = 0; x < mapWidth; x += 32)
{
using (Bitmap tile = new Bitmap(location + "\\" + y + "_" + x + ".png"))
{
graphics.DrawImage(tile, new Point(x, y));
tile.Dispose();
}
}
}
graphics.Dispose();
}
File name structure is like this: y_x.png
Each tile looks like this:
The result: (Don't mind the black area.)
What it actually should look like:
What could cause it to screw up like this? X_X
This is really bugging me XD.
#Edit got it fixed, this can be closed.






