FromArgb() static private method

static private FromArgb ( int R, int G, int B ) : BGRA
R int
G int
B int
return BGRA
Esempio n. 1
0
 private BGRA GetColor(BGRA *Data, int Width, int Height, int x, int y)
 {
     if (x < 0 || y < 0 || x >= Width || y >= Height)
     {
         return(BGRA.FromArgb(0, 0, 0, 0));
     }
     return(Data[y * Width + x]);
 }
Esempio n. 2
0
 public BGRA Lerp3x1(BGRA color1, BGRA color2)
 {
     return(m_Engine.Lerp.Lerp(color1, 3, color2, 1, BGRA.FromArgb(0, 0, 0, 0), 0));
 }