示例#1
0
        private void _btnTransition_Click(object sender, EventArgs e)
        {
            TransitionDialog dlg = new TransitionDialog(_transitionOptions);

            if (dlg.ShowDialog(this) == DialogResult.OK)
            {
                _transitionOptions = dlg.TransitionOptions;

                _ckShowTransition.Checked = true;

                Invalidate();
            }
        }
示例#2
0
        /// <summary>
        /// Initializes the application
        /// </summary>
        private void MainForm_Load(object sender, EventArgs e)
        {
            try
            {
                // setup our caption
                Messager.Caption = "LEADTOOLS for .NET C# Special Effects Demo";
                Text             = Messager.Caption;

                // intitialize the codecs object
                _codecs = new RasterCodecs();

                // Initialize the private memebers

                _effectOptions = new EffectOptions(
                    SpecialEffectsType.ZoomToC,
                    10,
                    10,
                    1,
                    0);

                _transitionOptions = new TransitionOptions(
                    SpecialEffectsTransitionStyle.ConeFromB,
                    Color.Red,
                    Color.Blue,
                    new EffectOptions(SpecialEffectsType.WipeLToR, 10, 10, 1, 0));

                _shapeOptions = new ShapeOptions(
                    SpecialEffectsShape.CrossSMALL,
                    SpecialEffectsFillStyle.Solid,
                    Color.Red,
                    Color.Blue);

                _textOptions = new TextOptions(
                    "LEADTOOLS",
                    SpecialEffectsTextStyle.InsetLight,
                    Color.Red,
                    Color.Blue);

                _processor = new SpecialEffectsProcessor();

                _index = 0;
                PaintSpecialEffects();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
示例#3
0
        public TransitionDialog(TransitionOptions transitionOptions)
        {
            _transitionOptions = transitionOptions;

            InitializeComponent();
        }