private void FullScreenForm_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
        {
            _graphicsObj.FillRectangle(new SolidBrush(Color.Black), _graphicsObj.VisibleClipBounds);

            ImageItem i = _parentForm.GetCurrentImageItem();

            i.Draw(_graphicsObj);
        }
Пример #2
0
        private void PreviewForm_Paint(object sender, System.Windows.Forms.PaintEventArgs e)
        {
            _graphicsObj.FillRectangle(new SolidBrush(Color.Black), _graphicsObj.VisibleClipBounds);

            ImageItem i = _parentForm.GetCurrentImageItem();

            if (i != null)
            {
                i.Draw(_graphicsObj, Screen.PrimaryScreen.Bounds);
            }
        }