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); }
public BGRA[] ToPixelColor() { BGRA[] rgba = new BGRA[(int)(this.Width * this.Height * this.Scale * this.Scale)]; ToIndexedBgra((i, pixel) => { rgba[i] = pixel; }); return(rgba); }