Open djrecipe opened 1 year ago
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgba32> imgSharp = SixLabors.ImageSharp.Image.Load<SixLabors.ImageSharp.PixelFormats.Rgba32>(imagePath);
List<SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgba32>> imgSharpList = new List<Image<Rgba32>>() {imgSharp};
// TODO 1/9/23: support this casting
List<AnyBitmap> anyBitmapList = imgSharpList.Cast<AnyBitmap>().ToList();
// should we also support this?
//List<AnyBitmap> anyBitmapList = imgSharpList;
See this commit for regression test
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgba32> imgSharp = SixLabors.ImageSharp.Image.Load<SixLabors.ImageSharp.PixelFormats.Rgba32>(imagePath);
List<SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgba32>> imgSharpList = new List<Image<Rgba32>>() {imgSharp};
// TODO 1/9/23: support this casting
List<AnyBitmap> anyBitmapList = imgSharpList.Cast<AnyBitmap>().ToList();
// should we also support this?
//List<AnyBitmap> anyBitmapList = imgSharpList;
See this commit for regression test