Пример #1
0
        public override ResourceData FromResource(ResourceLang lang, Byte[] data)
        {
            GifImageResourceData rd;

            if (GifImageResourceData.TryCreate(lang, data, out rd))
            {
                return(rd);
            }

            return(null);
        }
Пример #2
0
        private static ResourceData FromFile(Stream stream, String extension)
        {
            Byte[] data = GetAllBytesFromStream(stream);

            GifImageResourceData rd;

            if (GifImageResourceData.TryCreate(null, data, out rd))
            {
                return(rd);
            }

            return(null);
        }
Пример #3
0
        public override ResourceData FromFile(Stream stream, String extension, ResourceSource source)
        {
            Byte[] data = GetAllBytesFromStream(stream);

            GifImageResourceData rd;

            if (GifImageResourceData.TryCreate(null, data, out rd))
            {
                return(rd);
            }

            return(null);
        }