ScreenToGif.Modern.timerCapWithCursorFull_Tick C# (CSharp) Method

timerCapWithCursorFull_Tick() private method

Takes a screenshot of th entire area and add to the list, plus add to the list the position and icon of the cursor.
private timerCapWithCursorFull_Tick ( object sender, EventArgs e ) : void
sender object
e EventArgs
return void
        private void timerCapWithCursorFull_Tick(object sender, EventArgs e)
        {
            _cursorInfo = new CursorInfo
            {
                IconImage = _capture.CaptureImageCursor(ref _posCursor),
                Position = panelTransparent.PointToClient(_posCursor),
                Clicked = _recordClicked,
            };


            //saves to list the actual icon and position of the cursor
            _listCursor.Add(_cursorInfo);

            //Take a screenshot of the area.
            _gr.CopyFromScreen(0, 0, 0, 0, _sizeResolution, CopyPixelOperation.SourceCopy);
            //Add the bitmap to a list

            _addDel.BeginInvoke(String.Format("{0}{1}.bmp", _pathTemp, _frameCount), new Bitmap(_bt), CallBack, null);

            this.Invoke((Action)(() => this.Text = String.Format("Screen To Gif • {0}", _frameCount)));

            _frameCount++;
            GC.Collect(1);
        }
Modern