🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #593

Displaying gray image from pixels

#593
From: Hakan
Date: Mon, 14 Mar 2005 09:17
13 lines
1254 bytes
Hello all

I have color values for a grey image all <= 255. I want to
display them correctly on a panel. I do display them but
the colors don't look as they should. Does anyone know
how to display them correctly? Which classes do I need to use 
(DataBuffer, ColorModel, Raster, etc) Does anyone have a sample 
code for it?

Thanks in advance.

Hakan
Technical Details
Message-ID: <4235569e$2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,26ca403537c4f70f,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Hakan" <kocak@eumetsat.de>
Sender: "Hakan" <kocak@eumetsat.de>
Reply-To: "Hakan" <kocak@eumetsat.de>
Subject: Displaying gray image from pixels
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 163.165.203.190     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4235569e$2@newsgroups.borland.com>
Date: 14 Mar 2005 01:17:18 -0800
X-Trace: newsgroups.borland.com 1110791838 207.105.83.66 (14 Mar 2005 01:17:18 -0800)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!feeder2.on.meganewsservers.com!meganewsservers.com!textfeed1.on.meganewsservers.com!38.119.100.83.MISMATCH!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail