public void onDownsample(int k)
 {
     if (k == 1)
     {
         Downsample.saveR(model.getChannels()[0]);
     }
     else if (k == 2)
     {
         Downsample.saveG(model.getChannels()[1]);
     }
     else if (k == 3)
     {
         Downsample.saveB(model.getChannels()[2]);
     }
 }
 //downsampling and compression
 public void onDownsample()
 {
     model.setChannels(Downsample.Downsamples(model.getImage()));
     view.showPictures(model.getImage(), model.getChannels());
 }
Esempio n. 3
0
 private void tileLoadCompressed_Click(object sender, EventArgs e)
 {
     ShowOneImage();
     pictureBoxSingle.Image = Downsample.openCompressedFile();
 }