Esempio n. 1
0
        public static StreamingSource Stream(Stream stream)
        {
            PeekStream      peekStream = new PeekStream(stream, 64);
            SoundFileFormat format     = DetermineFileFormat(peekStream.GetInitialBytesStream());

            return(Stream(peekStream, format));
        }
Esempio n. 2
0
        public static Image Load(Stream stream)
        {
            PeekStream      peekStream = new PeekStream(stream, 64);
            ImageFileFormat format     = DetermineFileFormat(peekStream.GetInitialBytesStream());

            return(Load(peekStream, format));
        }
Esempio n. 3
0
        public static ModelData Load(Stream stream)
        {
            PeekStream      peekStream = new PeekStream(stream, 256);
            ModelFileFormat format     = DetermineFileFormat(peekStream.GetInitialBytesStream());

            return(Load(peekStream, format));
        }