private void btnGray_Click(object sender, EventArgs e) { Bitmap copy = new Bitmap((Bitmap)this.picOriginal.Image); Processing.ConvertToGray(copy); this.picResult.Image = copy; }
public void TestMethod1() { MoImageProcessingWinForms.Processing processing; // = new MoImageProcessing(); //Arrange Bitmap originalImage = new Bitmap(@"C:\Users\Public\test_224_299_Image.bmp"); Size size = new Size(16); Processing.ConvertToGray(copy); //Act Bitmap resizedImage = Processing.ResizeImage(copy, size); //Assert }