Come posso ottenere un Brush
per impostare uno sfondo di ad es. a Grid
da un codice RGB.Come ottenere un pennello da un codice RGB?
ho hace codice RGB come int
:
R = 12
B = 0
G = 255
ho bisogno di sapere come convertire in una Brush
Come posso ottenere un Brush
per impostare uno sfondo di ad es. a Grid
da un codice RGB.Come ottenere un pennello da un codice RGB?
ho hace codice RGB come int
:
R = 12
B = 0
G = 255
ho bisogno di sapere come convertire in una Brush
var brush = new SolidColorBrush(Color.FromArgb(255, (byte)R, (byte)G, (byte)B));
myGrid.Background = brush;
'Color.FromARGB' – Sayse
Ma questo wahts avere byte come un input – gurehbgui