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

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

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

            return(Load(peekStream, format));
        }