using SkiaSharp; using System.IO; namespace Vinno.vCloud.Common.Vid2.Codec { public class VinnoImageDecoder { /// /// Convert VinnoImage to Image /// /// /// private SKBitmap VinnoImageToImage(VinnoImage image) { using (var ms = new MemoryStream(image.ImageData)) { return SKBitmap.Decode(ms); } } /// /// Decode the /// /// /// public SKBitmap Decode(VinnoImage image) { return VinnoImageToImage(image); } } }