Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #134

Re: How to do image-type

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.alt.net!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "hiwa" <hiwa@THRWHITE.remove-dii-this>
Subject Re: How to do image-type
Message-ID <1163811659.971908.34110@j44g2000cwa.googlegroups.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
In-Reply-To <1163755756.272634.317060@m7g2000cwm.googlegroups.com><ej
References <1163755756.272634.317060@m7g2000cwm.googlegroups.com><ej
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 17
Date Wed, 27 Apr 2011 15:25:47 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303917947 96.60.20.240 (Wed, 27 Apr 2011 10:25:47 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:25:47 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:134

Show key headers only | View raw


  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 | NextPrevious in thread | Find similar


Thread

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