void DoStringToImage() { string text = imageString; string fileName = selectedFileName; string saveName = fileSaveName; if (fileToImage) { ImageStringHelper.FileToImage(fileName, saveName); } else { ImageStringHelper.StringToImage(text, saveName); } }
void DoImageToString() { imageString = ImageStringHelper.ImageToString(selectedFileName); }