Beispiel #1
0
        private void LoadFromWic(IWICImagingFactory factory, IWICBitmapSource bitmapSource, Guid wicImageFormat)
        {
            int width;
            int height;

            bitmapSource.GetSize(out width, out height);
            this.EnsureBuffer(width, height);
            factory.FillBlobFromBitmapSource(bitmapSource, this.Image, wicImageFormat);
        }