Replace Sheet.AsBitmap with Sheet.AsPng.

This commit is contained in:
Paul Chote
2019-02-12 12:50:10 +00:00
committed by reaperrr
parent 2c96eb9d24
commit 82fade25a6
2 changed files with 12 additions and 35 deletions

View File

@@ -49,7 +49,7 @@ namespace OpenRA.Mods.Common.UtilityCommands
{
var max = s == sb.Current ? (int)sb.CurrentChannel + 1 : 4;
for (var i = 0; i < max; i++)
s.AsBitmap((TextureChannel)ChannelMasks[i], palette).Save("{0}.png".F(count++));
s.AsPng((TextureChannel)ChannelMasks[i], palette).Save("{0}.png".F(count++));
}
Console.WriteLine("Saved [0..{0}].png", count - 1);