Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void Main(string[] args)
- {
- string[] filePaths = Directory.GetFiles(@"~path~", "*.jpg");
- Bitmap Final = new Bitmap(32*32, 32*32);
- int index = 0;
- for (int x = 0; x < 32; x++)
- {
- for (int y = 0; y < 32; y++)
- {
- using (Graphics g = Graphics.FromImage(Final))
- {
- Image newImage = Image.FromFile(filePaths[index]);
- g.DrawImage(newImage, x * 32, y * 32);
- newImage.Dispose();
- g.Dispose();
- }
- //Final = grfx;
- index++;
- }
- }
- Final.Save(@"~path~.png");
- }
Add Comment
Please, Sign In to add comment