using System.Drawing;
using System.IO;
using System.Reflection;

namespace QCRPG.Framework;

public class Resources
{
	public static Stream GetResource(string name)
	{
		return Assembly.GetAssembly(typeof(Resources)).GetManifestResourceStream("QCRPG.Framework.Resources." + name);
	}

	public static Image GetImage(string name)
	{
		return Image.FromStream(GetResource(name));
	}
}
