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);
 }
Beispiel #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);
 }