public static StreamingSource Stream(Stream stream) { PeekStream peekStream = new PeekStream(stream, 64); SoundFileFormat format = DetermineFileFormat(peekStream.GetInitialBytesStream()); return(Stream(peekStream, format)); }
public static Image Load(Stream stream) { PeekStream peekStream = new PeekStream(stream, 64); ImageFileFormat format = DetermineFileFormat(peekStream.GetInitialBytesStream()); return(Load(peekStream, format)); }
public static ModelData Load(Stream stream) { PeekStream peekStream = new PeekStream(stream, 256); ModelFileFormat format = DetermineFileFormat(peekStream.GetInitialBytesStream()); return(Load(peekStream, format)); }