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; }
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); }
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); }