Exemplo n.º 1
0
 public static BGRA[] ToPixelColor <T>(IImage <T> img)
     where T : struct, IEquatable <T>
 {
     BGRA[] rgba = new BGRA[img.Length];
     img.ToIndexedBgra((i, pixel) => { rgba[i] = pixel; });
     return(rgba);
 }
Exemplo n.º 2
0
 public BGRA[] ToPixelColor()
 {
     BGRA[] rgba = new BGRA[(int)(this.Width * this.Height * this.Scale * this.Scale)];
     ToIndexedBgra((i, pixel) => { rgba[i] = pixel; });
     return(rgba);
 }