Exemple #1
0
        public bool DrawCustomZoomImage(IVideoOperation videoOperation)
        {
            using (Graphics g = Graphics.FromImage(m_ZoomedImage.Image))
            {
                if (videoOperation.DrawCustomZoomImage(g, m_ZoomedImage.Image.Width, m_ZoomedImage.Image.Height))
                {
                    g.Save();
                    m_ZoomedImage.Invalidate();
                    return true;
                }
            }

            return false;
        }
Exemple #2
0
        public bool DrawCustomZoomImage(IVideoOperation videoOperation)
        {
            using (Graphics g = Graphics.FromImage(m_ZoomedImage.Image))
            {
                if (videoOperation.DrawCustomZoomImage(g, m_ZoomedImage.Image.Width, m_ZoomedImage.Image.Height))
                {
                    g.Save();
                    m_ZoomedImage.Invalidate();
                    return(true);
                }
            }

            return(false);
        }
Exemple #3
0
        public bool TrySwitchTo(IVideoOperation videoOperation, IImageToolView imageToolView, ImageTool oldTool)
        {
            if (!CanSwitchNow())
            {
                return(false);
            }

            if (oldTool != null)
            {
                oldTool.Deactivate();
            }

            m_VideoOperation = videoOperation;
            m_ImageToolView  = imageToolView;

            Activate();

            return(true);
        }