Paint.CanvasPlayback.CanvasPlayback C# (CSharp) Method

CanvasPlayback() public method

Initializes a new instance of the Paint.CanvasPlayback class.
public CanvasPlayback ( string filename ) : System
filename string Name of the file containing all the playback commands
return System
        public CanvasPlayback(string filename)
        {
            this.fileStream = File.OpenRead(filename);

            this.playbackCommandTotal =
                fileStream.ReadByte() |
                (fileStream.ReadByte()) << 8 |
                (fileStream.ReadByte()) << 16 |
                (fileStream.ReadByte()) << 24;

            // skip past the final brush size and color as we don't need to know them
            fileStream.Seek(8, SeekOrigin.Current);

            this.Color = Color.White;
        }