Added an extension method to clone bitmaps with a 32bbpArgb pixel format.

This commit is contained in:
RoosterDragon
2015-04-11 21:05:46 +01:00
parent c1787a8368
commit 84dffce7c1
3 changed files with 22 additions and 2 deletions

View File

@@ -398,7 +398,7 @@ namespace OpenRA
if (CustomPreview.PixelFormat != PixelFormat.Format32bppArgb)
{
var original = CustomPreview;
CustomPreview = original.Clone(original.Bounds(), PixelFormat.Format32bppArgb);
CustomPreview = original.CloneWith32bbpArgbPixelFormat();
original.Dispose();
}
}