Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #134
| From | "hiwa" <hiwa@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: How to do image-type |
| Message-ID | <1163811659.971908.34110@j44g2000cwa.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1163755756.272634.317060@m7g2000cwm.googlegroups.com><ej |
| Date | 2011-04-27 15:25 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui
Thomas Fritsch wrote:
> It is because the renderer does no dithering.
Sorry, it was my coding error. Correct code is:
----------------------------------------------------------------------
byte b = (byte)255;
icm = new IndexColorModel
(1, 2, new byte[]{b, 0}, new byte[]{b, 0}, new byte[] {b, b});//Blue
on White
bw = new BufferedImage(scrw, scrh, TYPE_BYTE_BINARY, icm);
----------------------------------------------------------------------
And, yes, it doesn't do dithering. Ugly image!
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar
How to do image-type conv "hiwa" <hiwa@THRWHITE.remove-dii-this> - 2011-04-27 15:25 +0000
Re: How to do image-type "hiwa" <hiwa@THRWHITE.remove-dii-this> - 2011-04-27 15:25 +0000
Re: How to do image-type "Thomas Fritsch" <thomas.fritsch@THRWHITE.remove-dii-this> - 2011-04-27 15:25 +0000
Re: How to do image-type "Thomas Weidenfeller" <thomas.weidenfeller@THRWHITE.remove-dii-this> - 2011-04-27 15:25 +0000
Re: How to do image-type "hiwa" <hiwa@THRWHITE.remove-dii-this> - 2011-04-27 15:25 +0000
csiph-web