示例#1
0
        private void NewImage(ImageInformation info)
        {
            ViewerForm child = new ViewerForm();

            child.MdiParent = this;
            child.Initialize(info, _paintProperties, _animateRegions, true, _useDpi, _animationMode);
            child.Show();
        }
示例#2
0
        private void _menuItemAnimationCreate_Click(object sender, EventArgs e)
        {
            CreateAnimationDialog createAnimationDialog = new CreateAnimationDialog();

            createAnimationDialog.Owner = this;
            if (createAnimationDialog.ShowDialog() == DialogResult.OK)
            {
                createAnimationDialog.Image.AnimationGlobalLoop = 1000;
                createAnimationDialog.Image.AnimationDelay      = 500;
                ImageInformation info  = new ImageInformation(createAnimationDialog.Image);
                ViewerForm       child = new ViewerForm();
                child.MdiParent = this;
                child.Initialize(info, _paintProperties, _animateRegions, true, _useDpi, _animationMode);
                child.Show();
            }
        }