Exemple #1
0
        public static bool TryGetResizedImageBytesGIF89a(Stream stream, Size ts, int quality, out Size sz, out byte[] bytes)
        {
            bytes = null;
            sz    = default(Size);

            GifDecoder originalimage = new GifDecoder();

            if (!originalimage.TryRead(stream))
            {
                return(false);
            }

            sz    = originalimage.GetFrameSize();
            bytes = GetResizedImageBytesGIF89a(originalimage, stream, ts, quality);
            return(true);
        }