public void SaveCompressedClick() { Downsampling d = new Downsampling(this.model.getMainImage()); DownsampleFormat df = d.Downsample(1); Utilities.SaveCompressed(df); }
public void DownsampleClick() { this.channelsOn = true; this.view.MakeChannelsVisible(); Downsampling down = new Downsampling(this.model.getMainImage()); DownsampleFormat df1 = down.Downsample(1); DownsampleFormat df2 = down.Downsample(2); DownsampleFormat df3 = down.Downsample(2); //Compression.DownsamplingNew.Downsampling down = new Compression.DownsamplingNew.Downsampling(this.model.getMainImage()); //Compression.DownsamplingNew.DownsampleFormat df1 = down.DownsampleImage("YCb"); //Compression.DownsamplingNew.DownsampleFormat df2 = down.DownsampleImage("CbCr"); //Compression.DownsamplingNew.DownsampleFormat df3 = down.DownsampleImage("YCr"); this.model.setYChannel(down.RestoreBitmap(df1)); this.model.setCbChannel(down.RestoreBitmap(df2)); this.model.setCrChannel(down.RestoreBitmap(df3)); this.view.ShowImages(model.getMainImage(), model.getYChannel(), model.getCbChannel(), model.getCrChannel(), model.getImageName()); }