private void imageToASCII() {
		char[][] asciiResult = ImageProcessor.imageToASCII(inputImage);

		try {
			sdoc.remove(0, sdoc.getLength());
		} catch (Exception e) {
		}

		int offset = 0;
		StyleContext context = new StyleContext();
		Style style = context.getStyle(StyleContext.DEFAULT_STYLE);
		StyleConstants.setFontSize(style, 10);
		StyleConstants.setLineSpacing(style, -0.7f);

		try {
			for (int j = 0; j < asciiResult.length; j++) {
				for (int i = 0; i < asciiResult[0].length; i++) {
					String s = Character.toString(asciiResult[j][i]);
					sdoc.insertString(offset, s, style);
					sdoc.setParagraphAttributes(offset, 1, style, true);
					offset++;
				}
				sdoc.insertString(offset, "\n", null);
				offset++;
			}
		} catch (Exception e) {
		}

		frameProcessed.setVisible(false);
		textProcessed.setVisible(true);
		textProcessed.repaint();

		infoBar.setText(" Info.: Color image is converted to ASCII");
	}