Exemplo n.º 1
0
        // CIImage

#if !__WATCHOS__
        public static void ToSKPixmap(this CIImage ciImage, SKPixmap pixmap)
        {
            using (var colorSpace = CGColorSpace.CreateDeviceRGB())
                using (var context = new CIContext(null))
                {
                    context.RenderToBitmap(ciImage, pixmap.GetPixels(), pixmap.RowBytes, ciImage.Extent, (int)CIFormat.kRGBA8, colorSpace);
                }
        }