// show image on the window private void showImage(string filename) { originalImage = ImageConvertor.FilenameToImage(filename); originalImageBytes = ImageConvertor.ImageToByteArray(filename); originalPanel.Source = originalImage; W = (int)originalImage.PixelHeight; H = (int)originalImage.PixelWidth; ImageProcessing.setHeightAndLength(W, H); }
// show image on the window private void showImage(string filename) { originalImage = ImageConvertor.FilenameToImage(filename); originalImageBytes = ImageConvertor.ImageToByteArray(filename); originalPanel.Source = originalImage; }