Paint.CanvasPlayback.CreateTouchPoint C# (CSharp) Method

CreateTouchPoint() private method

Creates a TouchPoint based on the data in the commandByteArray
private CreateTouchPoint ( byte canvasRecorderCommand ) : ITouchPointSizeColor
canvasRecorderCommand byte /// Canvas recorder command. ///
return ITouchPointSizeColor
        private ITouchPointSizeColor CreateTouchPoint(byte canvasRecorderCommand)
        {
            var touchType = CanvasRecorderCommand.ToTouchType(canvasRecorderCommand);

            int positionX = this.commandByteArray[1] | this.commandByteArray[2] << 8;
            int positionY = this.commandByteArray[3] | this.commandByteArray[4] << 8;

            return new TouchPointSizeColour(
                new Vector2(positionX, positionY),
                touchType,
                this.Color,
                this.Brush);
        }