//-------------------------------------------------------------------------------------- private void toolStripButton1_Click(object sender, EventArgs e) { if (pbPicture1.Image == null || pbPicture2.Image == null || pbPicture3.Image == null) { return; } CBlackWhiteExplorer lBlackWhiteExplorer = new CBlackWhiteExplorer(); byte[][] lMatrix1 = CBlackWhiteExplorer.BitmapToBinaryMatrix(pbPicture1.Image as Bitmap); byte[][] lMatrix2 = CBlackWhiteExplorer.BitmapToBinaryMatrix(pbPicture2.Image as Bitmap); byte[][] lMatrix3 = CBlackWhiteExplorer.BitmapToBinaryMatrix(pbPicture3.Image as Bitmap); byte[][][] lMatrixs = lBlackWhiteExplorer.Compare3BWMatrix(lMatrix1, lMatrix2, lMatrix3, byte.Parse(tcbValColor.SelectedItem.ToString())); Bitmap lPictureIntersection = CBlackWhiteExplorer.BinaryMatrixToBitmap(lMatrixs[0]); Bitmap lPictureUnion = CBlackWhiteExplorer.BinaryMatrixToBitmap(lMatrixs[1]); Bitmap lPictureUnionDiffer = CBlackWhiteExplorer.BinaryMatrixToBitmap(lMatrixs[2]); Bitmap lPicture001 = CBlackWhiteExplorer.BinaryMatrixToBitmap(lMatrixs[3]); Bitmap lPicture010 = CBlackWhiteExplorer.BinaryMatrixToBitmap(lMatrixs[4]); Bitmap lPicture100 = CBlackWhiteExplorer.BinaryMatrixToBitmap(lMatrixs[5]); Bitmap lPicture011 = CBlackWhiteExplorer.BinaryMatrixToBitmap(lMatrixs[6]); Bitmap lPicture101 = CBlackWhiteExplorer.BinaryMatrixToBitmap(lMatrixs[7]); Bitmap lPicture110 = CBlackWhiteExplorer.BinaryMatrixToBitmap(lMatrixs[8]); pbIntersection.Image = lPictureIntersection; pbUnion.Image = lPictureUnion; pbUnionDiffer.Image = lPictureUnionDiffer; pb001.Image = lPicture001; pb010.Image = lPicture010; pb100.Image = lPicture100; pb011.Image = lPicture011; pb101.Image = lPicture101; pb110.Image = lPicture110; }