Paint.CanvasRecorder.RecordBrushSizeChange C# (CSharp) Method

RecordBrushSizeChange() private method

Records the brush size change as a command
private RecordBrushSizeChange ( Rectangle brush ) : void
brush Microsoft.Xna.Framework.Rectangle /// The size of the brush for subsequent dots ///
return void
        void RecordBrushSizeChange(Rectangle brush)
        {
            this.currentBrushSize = brush.Width;

            commandList.Add(CanvasRecorderCommand.SetBrushSize);
            commandList.Add((byte)this.currentBrushSize);
            commandList.Add((byte)(this.currentBrushSize >> 8));
            commandList.Add((byte)(this.currentBrushSize >> 16));
            commandList.Add((byte)(this.currentBrushSize >> 24));
        }