public static Texture FromImage(Image <Rgba64> image) { var dst = new Rgba64[image.Width * image.Height]; image.SavePixelData(dst); var converted = dst.Select(x => (Color32)x).ToArray(); return(new Texture( converted, (uint)image.Width, (uint)image.Height )); }