Exemple #1
0
 private void FormAnimation_FormClosed(object sender, FormClosedEventArgs e)
 {
     timer1.Enabled = false;
     MotiomAnimation.Clear();
     StaticAnimation = null;
     this.Dispose();
 }
Exemple #2
0
        float currentDPI; // масштаб экрана

        public FormAnimation(Bitmap previewBackground, List <ClassMotiomAnimation> motiomAnimation, ClassStaticAnimation staticAnimation)
        {
            InitializeComponent();
            //PreviewBackground = previewBackground;
            pictureBox_AnimatiomPreview.BackgroundImage = previewBackground;
            //pictureBox_AnimatiomPreview.Image = previewBackground;
            MotiomAnimation = motiomAnimation;
            StaticAnimation = staticAnimation;
            currentDPI      = (int)Registry.GetValue("HKEY_CURRENT_USER\\Control Panel\\Desktop", "LogPixels", 96) / 96f;
        }