Esempio n. 1
0
 private void Timer1_Tick(object sender, EventArgs e)
 {
     try
     {
         StaticPicture.BmpCopy = Tools.SlideShowRandomCollage(StaticAlbum.GetSelectedBitmaps(), StaticPicture.BmpCopy);
         Update();
     }
     catch (NullReferenceException)
     {
         MessageBox.Show("No picture loaded");
     }
 }
Esempio n. 2
0
 private void SideUnionBtn_Click(object sender, EventArgs e)
 {
     try
     {
         StaticPicture.BmpCopy = Filters.Combine(StaticAlbum.GetSelectedBitmaps());
         Update();
     }
     catch (NullReferenceException)
     {
         MessageBox.Show("No picture loaded");
     }
 }
Esempio n. 3
0
 private void RandomBtn_Click(object sender, EventArgs e)
 {
     try
     {
         StaticPicture.BmpCopy = Filters.RandomCollage(StaticAlbum.GetSelectedBitmaps());
         Update();
     }
     catch (NullReferenceException)
     {
         MessageBox.Show("No picture loaded");
     }
     catch (ArgumentNullException)
     {
         MessageBox.Show("No picture loaded");
     }
 }
Esempio n. 4
0
 private void BtnMosaic2_Click(object sender, EventArgs e)
 {
     try
     {
         StaticPicture.BmpCopy = Filters.TrapMosaic(StaticPicture.BmpCopy, StaticAlbum.GetSelectedBitmaps(), Convert.ToInt32(numericUpDownMosaic2.Value));
         Update();
     }
     catch (NullReferenceException)
     {
         MessageBox.Show("No picture loaded");
     }
     catch (ArgumentNullException)
     {
         MessageBox.Show("No picture loaded");
     }
 }
Esempio n. 5
0
 private void FusionSlideShowBtn_Click(object sender, EventArgs e)
 {
     if (FusionTimer.Enabled)
     {
         FusionTimer.Enabled = false;
         return;
     }
     try
     {
         cont = 0;
         StaticPicture.Bmp = Filters.Combine(StaticAlbum.GetSelectedBitmaps());
         Update();
         FusionTimer.Enabled = true;
     }
     catch (NullReferenceException)
     {
         MessageBox.Show("No picture loaded");
     }
 }