Paint.CanvasRecorder.RecordTouchPoint C# (CSharp) Method

RecordTouchPoint() private method

Records the touch point as a command
private RecordTouchPoint ( ITouchPointSizeColor touch ) : void
touch ITouchPointSizeColor
return void
        void RecordTouchPoint(ITouchPointSizeColor touch)
        {
            Vector2 position = touch.Position;

            commandList.Add(CanvasRecorderCommand.FromTouchType(touch.TouchType));

            // take advantage of the fact that the X and Y positions could actually be held within a short - therefore we can
            // still get both in a single int
            commandList.Add((byte) ((int)position.X));
            commandList.Add((byte) (((int)position.X) >> 8));
            commandList.Add((byte) ((int)position.Y));
            commandList.Add((byte) (((int)position.Y) >> 8));
        }