Hi
Thanks both for your input! I now have a test program. I have some questions regarding imageType:
Based on the above program by Rob Prime:
1) If I fill or clear the area using g2d before writing a character to the BufferedImage, then the output is wrong (all 1's). But when I immediately write a character, without doing anything to the background (as in the example above), then the output is correct (1's and 0's). Why is this?
2)
Where can I find the mappings for colours of ARGB for
Java?
3)The char's I draw to the BufferedImage are monochromatic, and the output is also monochromatic. Also, I am not displaying the BufferedImage or Graphics2D on a screen. I tried switching the BufferedImage imageType from TYPE_INT_ARGB to TYPE_BYTE_BINARY to try and use the 1-bit mode, but the output became incorrect. Where can I find out about using imageTypes, TYPE_BYTE_BINARY in particular?
Thanks again
Regards
MCU