private static Image GetGoldenCard() { var path = $"UnoSharp.Resources.Cards.GoldenCard.png"; var content = EmbedResourceReader.GetStream(path); return(new Bitmap(content)); }
public static Bitmap ToImage(this Card card) { var path = $"UnoSharp.Resources.Cards.{card.Color}.{card.Value}.png"; var content = EmbedResourceReader.GetStream(path); return(new Bitmap(content)); }
public virtual Bitmap ToImage() { var path = $"UnoSharp.Resources.Cards.{this.Color}.{this.Value}.png"; var content = EmbedResourceReader.GetStream(path); if (content == null) { return((Bitmap)Card.GoldenCardImage); } return(new Bitmap(content)); }