diff --git a/OpenRa.FileFormats/BitmapBuilder.cs b/OpenRa.FileFormats/BitmapBuilder.cs
new file mode 100644
index 0000000000..7e4d1bfaba
--- /dev/null
+++ b/OpenRa.FileFormats/BitmapBuilder.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Drawing;
+
+namespace OpenRa.FileFormats
+{
+ public static class BitmapBuilder
+ {
+ public static Bitmap FromBytes( byte[] imageBytes, int width, int height, Palette pal )
+ {
+ Bitmap bitmap = new Bitmap( width, height );
+ for( int x = 0 ; x < width ; x++ )
+ for( int y = 0 ; y < height ; y++ )
+ bitmap.SetPixel( x, y, pal.GetColor( imageBytes[ x + width * y ] ) );
+
+ return bitmap;
+ }
+ }
+}
diff --git a/OpenRa.FileFormats/OpenRa.FileFormats.csproj b/OpenRa.FileFormats/OpenRa.FileFormats.csproj
index 446e0b62f0..bf8204c2d8 100644
--- a/OpenRa.FileFormats/OpenRa.FileFormats.csproj
+++ b/OpenRa.FileFormats/OpenRa.FileFormats.csproj
@@ -28,12 +28,17 @@
4
+
+ False
+ ..\debug\MixDecrypt.dll
+
+
@@ -42,12 +47,7 @@
-
-
-
- {6F5D4280-3D23-41FF-AE2A-511B5553E377}
- MixDecrypt
-
+