Re: [JAVA2D] Black and White printing

2006-05-26 Thread Phil Race
Perhaps you could create a BufferedImage.TYPE_BYTE_BINARY with a 2 color IndexColorModel and have all the printing go into there. Then all rendering will have to be one of those two colours which I assume you would select as BW. The drawbacks to this are that to get printer resolution graphics

[JAVA2D] Black and White printing

2006-05-25 Thread java2d
I only know about printing from the tutorial and using it as a service. I want to add to the print menu : Black and White to the picks already there of Monochrome and Color. What is best way to do this. [Message sent by forum member 'diverdad' (diverdad)]

Re: [JAVA2D] Black and White printing

2006-05-25 Thread Phil Race
Do you mean you want to update the list of choices the user sees for some reason? The dialog is not customisable in this way so you'd have to write your own dialog. Also I wonder how you expect to communicate this intent to the printing API and ultimately to the printer driver For example, on

Re: [JAVA2D] Black and White printing

2006-05-25 Thread java2d
Yes I understand that I need to display a new dialog. Black and white is not the same as monchrome. With monochrome you get shades of gray. I want the background to be white and all drawings to be black. [Message sent by forum member 'diverdad' (diverdad)]

Re: [JAVA2D] Black and White printing

2006-05-25 Thread Phil Race
I want the background to be white and all drawings to be black So you need to proceed as I advised but the new dialog seems like a lot of work for little gain. We can't add it in our dialog as we can't control the colours you use. -phil. Yes I understand that I need to display a new dialog.

Re: [JAVA2D] Black and White printing

2006-05-25 Thread java2d
Phil, I'm still puzzled. It isn't clear how to accomplish what I want. If I was in a color lookup world I would do something like: set 0 - white and colors 1-256 to black. The problem with monochrome printing is the user has a yellow line drawn and wants to print it on a black and white