private void OpenFile(string fileName) { ClearRenderingData(); IImage rgbImage = new RGBImage(); string sCommand = SupportedImageActions.Load; object[] inputs = new object[] { fileName }; object[] outputs = null; rgbImage.DoCommand(sCommand, inputs, ref outputs); Image image = ToImage(rgbImage); // update currnt grey image FileName = fileName; _image = rgbImage; // update image for image viewer UpdateImageViewer(image); List <Word> wordList = null; this.UpdateImageViewer(wordList); }