recrownedgtk/RecrownedAthenaeum/Types/Texture.cs

21 lines
523 B
C#

using System.IO;
namespace RecrownedAthenaeum.Types {
public class Texture {
byte[] textureData;
public Texture() {
Image img = Image.FromFile()
}
public Texture(byte[] textureData) {
this.textureData = textureData;
}
public void LoadFromPNG(string path) {
using (FileStream file = new FileStream(path, FileMode.Open)) {
Image img = new Image();
img.LoadFromPNG(file);
}
}
}
}