new chrome stuff
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using Ijw.DirectX;
|
||||
using OpenRa.FileFormats;
|
||||
|
||||
namespace OpenRa.Game.Graphics
|
||||
{
|
||||
@@ -18,6 +19,12 @@ namespace OpenRa.Game.Graphics
|
||||
this.bitmap = new Bitmap(size.Width, size.Height);
|
||||
}
|
||||
|
||||
public Sheet(Renderer renderer, string filename)
|
||||
{
|
||||
this.renderer = renderer;
|
||||
this.bitmap = (Bitmap)Image.FromStream(FileSystem.Open(filename));
|
||||
}
|
||||
|
||||
void Resolve()
|
||||
{
|
||||
string filename = string.Format("../../../sheet-{0}.png", suffix++);
|
||||
|
||||
Reference in New Issue
Block a user