Пример #1
0
        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));
        }
Пример #2
0
 public static string GetResource(DivergenceScale scale, ResourceTypes type)
 {
     return(Embedding.Combine("Resources", $"{scale}", $"Nixie{type}.png"));
 }