コード例 #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));
        }