예제 #1
0
        private void Normal_Elapsed(object sender, EventArgs e)
        {
            string fileName = $"{_pathTemp}{FrameCount}.png";

            var render = MainBorder.GetRender(_dpi); //TODO: Too heavy!

            ListFrames.Add(new FrameInfo(fileName, FrameRate.GetMilliseconds(_snapDelay)));

            ThreadPool.QueueUserWorkItem(delegate { AddFrames(fileName, render); });

            FrameCount++;
        }
예제 #2
0
        private void Normal_Elapsed(object sender, EventArgs e)
        {
            string fileName = $"{Project.FullPath}{FrameCount}.png";

            //TODO: GetRender fails to create useful image when the control has decimals values as size.

            var render = MainBorder.GetRender(_dpi); //TODO: Too heavy! Maybe just save the strokes? like layers?

            Project.Frames.Add(new FrameInfo(fileName, FrameRate.GetMilliseconds(_snapDelay)));

            ThreadPool.QueueUserWorkItem(delegate { AddFrames(fileName, render); });

            FrameCount++;
        }