private static BitmapRef Load(ResourceTypes type, DivergenceScale scale) { Stream stream = Embedding.Get(GetResource(scale, type)); Bitmap bitmap = (Bitmap)Image.FromStream(stream); return(new BitmapRef(bitmap, type, scale)); }
public static string GetResource(DivergenceScale scale, ResourceTypes type) { return(Embedding.Combine("Resources", $"{scale}", $"Nixie{type}.png")); }