___paintEnd() публичный Метод

public ___paintEnd ( ) : void
Результат void
Пример #1
0
        private void VideoShitbox_Paint(object sender, PaintEventArgs e)
        {
            if (Logic == null)
            {
                return;
            }

            imageMan.___paintBegin();

            // debug why do we repaint 2 times when scrolling???
            repaintCount++;
            //cxzxc("y repaint 2x:" + repaintCount);

            if (vidkaDrawOps != null)
            {
                vidkaDrawOps.Paint(e.Graphics, Width, Height);
            }

            imageMan.___paintEnd();
        }
        private void ShitboxAlignVideoAudio_Paint(object sender, PaintEventArgs e)
        {
            if (imageMan == null)
            {
                return;
            }
            if (vclip == null)
            {
                return;
            }

            imageMan.___paintBegin();

            // TODO: this was commented out during VideoShitboxDrawOps refactoring. - Jan 27, 2016
            // if you really care (not sure why though... this one kept crashing all the friggin time) use draw ops here... should be easier at any rate
            //drawOps.AlignVideoAudio_drawVideo(vclipFullToDraw);
            //drawOps.AlignVideoAudio_drawAudio(aclipToDraw, vclip.CustomAudioOffset);

            imageMan.___paintEnd();
        }
Пример #3
0
        private void VideoShitbox_Paint(object sender, PaintEventArgs e)
        {
            if (Logic == null)
            {
                return;
            }

            imageMan.___paintBegin();

            // debug why do we repaint 2 times when scrolling???
            repaintCount++;
            //cxzxc("y repaint 2x:" + repaintCount);

            //prepare canvas: paint strips for timelines, etc
            drawOps.PrepareCanvas(e.Graphics, Logic.Dimdim, Width, Height, Logic.UiObjects.TimelineHover);

            drawOps.DrawTimeAxis(e.Graphics, Logic.Dimdim, Width, Height, Logic.Proj);

            // TODO: buffer an off-screen image of the entire project
            drawOps.DrawProjectVideoTimeline(
                e.Graphics,
                Width, Height,
                Logic.Proj,
                Logic.FileMapping,
                Logic.Dimdim,
                Logic.UiObjects.CurrentVideoClip,
                Logic.UiObjects.Draggy);

            drawOps.DrawProjectAudioTimeline(
                e.Graphics,
                Width, Height,
                Logic.Proj,
                Logic.Dimdim,
                Logic.UiObjects.CurrentAudioClip,
                Logic.UiObjects.Draggy);

            // draw hover clip outline
            if (Logic.UiObjects.CurrentVideoClipHover != null)
            {
                drawOps.OutlineClipVideoHover(
                    e.Graphics,
                    Logic.UiObjects.CurrentVideoClipHover,
                    Logic.Dimdim,
                    Height,
                    Logic.UiObjects.TrimHover,
                    Logic.UiObjects.TrimThreshPixels,
                    Logic.UiObjects.MouseDragFrameDelta);
            }
            //if (Logic.UiObjects.CurrentAudioClipHover != null)
            //	drawOps.OutlineClipAudioHover(
            //		e.Graphics,
            //		Logic.UiObjects.CurrentAudioClipHover,
            //		Logic.Dimdim,
            //		Height,
            //		OutlineClipType.Hover);

            if (Logic.UiObjects.OriginalTimelinePlaybackMode)
            {
                drawOps.DrawCurtainForOriginalPlayback(
                    e.Graphics,
                    Width,
                    Height,
                    Logic.Dimdim);
            }
            else
            {
                drawOps.DrawCurrentFrameMarker(
                    e.Graphics,
                    Logic.UiObjects.CurrentMarkerFrame,
                    Height,
                    Logic.Dimdim);
            }

            if (Logic.UiObjects.CurrentVideoClip != null)
            {
                drawOps.DrawCurrentClipVideo(
                    e.Graphics,
                    Logic.UiObjects.CurrentVideoClip,
                    Logic.Dimdim,
                    Logic.Proj,
                    Logic.FileMapping,
                    Width, Height,
                    (Logic.UiObjects.CurrentVideoClip == Logic.UiObjects.CurrentVideoClipHover)
                                                ? OutlineClipType.Hover
                                                : OutlineClipType.Active,
                    Logic.UiObjects.OriginalTimelinePlaybackMode,
                    Logic.UiObjects.TrimHover,
                    Logic.UiObjects.TrimThreshPixels,
                    Logic.UiObjects.CurrentMarkerFrame,
                    Logic.UiObjects.CurrentClipFrameAbsPos ?? 0,
                    Logic.UiObjects.MouseDragFrameDelta);
            }
            if (Logic.UiObjects.CurrentAudioClip != null)
            {
                drawOps.DrawCurrentClipAudio(
                    e.Graphics,
                    Logic.UiObjects.CurrentAudioClip,
                    Width,
                    Height,
                    Logic.Dimdim);
            }
            imageMan.___paintEnd();
        }