Ejemplo n.º 1
0
        private void DeskewDailog_Load(object sender, EventArgs e)
        {
            DeskewCommand command = new DeskewCommand();

            _initialFillColorLevel = 0;
            _initialFlags          = command.Flags;

            FillColorLevel = _initialFillColorLevel;
            Flags          = _initialFlags;

            _rbFill.Checked          = (Flags & DeskewCommandFlags.FillExposedArea) == DeskewCommandFlags.FillExposedArea;
            _rbNoFill.Checked        = (Flags & DeskewCommandFlags.DoNotFillExposedArea) == DeskewCommandFlags.DoNotFillExposedArea;
            _numFillColorLevel.Value = FillColorLevel;
            FillColor = RasterColor.Black;
            _pnlRevColor.BackColor = Color.Black;


            if (_isGray)
            {
                _pnlLevel.Visible = true;
                _pnlColor.Visible = false;
            }
            else
            {
                _pnlLevel.Visible = false;
                _pnlColor.Visible = true;
            }
        }
Ejemplo n.º 2
0
        private void _btnOk_Click(object sender, System.EventArgs e)
        {
            Flags = DeskewCommandFlags.DeskewImage;

            if (_rbFill.Checked)
            {
                Flags |= DeskewCommandFlags.FillExposedArea;
            }
            else
            {
                Flags |= DeskewCommandFlags.DoNotFillExposedArea;
            }

            _initialFillColor = FillColor;
            _initialFlags     = Flags;
        }
Ejemplo n.º 3
0
        private void DeskewDialog_Load(object sender, System.EventArgs e)
        {
            if (_firstTimer)
            {
                _firstTimer = false;
                DeskewCommand command = new DeskewCommand();
                _initialFillColor = command.FillColor;
                _initialFlags     = command.Flags;
            }

            FillColor = _initialFillColor;
            Flags     = _initialFlags;

            _rbFill.Checked   = (Flags & DeskewCommandFlags.FillExposedArea) == DeskewCommandFlags.FillExposedArea;
            _rbNoFill.Checked = (Flags & DeskewCommandFlags.DoNotFillExposedArea) == DeskewCommandFlags.DoNotFillExposedArea;

            UpdateControls();
        }
Ejemplo n.º 4
0
        private void _btnOk_Click(object sender, EventArgs e)
        {
            Flags          = DeskewCommandFlags.DeskewImage;
            FillColorLevel = (int)_numFillColorLevel.Value;

            if (_rbFill.Checked)
            {
                Flags |= DeskewCommandFlags.FillExposedArea;
            }
            else
            {
                Flags |= DeskewCommandFlags.DoNotFillExposedArea;
            }

            _initialFillColorLevel = FillColorLevel;
            _initialFlags          = Flags;

            if (_isGray)
            {
                FillColor = new RasterColor(FillColorLevel, FillColorLevel, FillColorLevel);
            }
        }