Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / June 2004

Tip: Looking for answers? Try searching our database.

Color shade varies

Thread view: 
DennyOR - 20 Jun 2004 06:12 GMT
Does anybody know why the same Color displays a different shade depending on
whether it's drawn directly to screen or first to an off-screen buffer?

Denny
Roedy Green - 20 Jun 2004 06:28 GMT
>Does anybody know why the same Color displays a different shade depending on
>whether it's drawn directly to screen or first to an off-screen buffer?

Do you have a screen driver with other than 8+8+8 colour?
e.g. with windows mapped colours.

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

DennyOR - 21 Jun 2004 17:15 GMT
It says it's "High Color (16-bit)"

> >Does anybody know why the same Color displays a different shade depending on
> >whether it's drawn directly to screen or first to an off-screen buffer?
[quoted text clipped - 6 lines]
> Coaching, problem solving, economical contract programming.
> See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Roedy Green - 21 Jun 2004 19:06 GMT
>It says it's "High Color (16-bit)"

Try upping that to 24 bit.  I think 16 bit works with a colour
palette, and each app has its own palette. The catch is when two apps
are visible at once, one of the apps uses the wrong palette which
makes its colours go off.

In the old days video cards slowed down drastically when you went to
more colours. Today you can't notice the difference.  You might as
well go 24 or 32 bit and be rid of the palette match problem.

Signature

Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.

Lasse Reichstein Nielsen - 21 Jun 2004 20:01 GMT
> I think 16 bit works with a colour palette, and each app has its own
> palette.

More likely, 16 bits is 5 bits red, 6 bits green and 5 bits blue.
The extra bit is assigned to green because the eye is more sensitive
to green than red or blue.

(searching for documentation ... google ... yes:
<URL: http://www.webcolors.freeserve.co.uk/chooser.htm >
)

/L
Signature

Lasse Reichstein Nielsen  -  lrn@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
 'Faith without judgement merely degrades the spirit divine.'

DennyOR - 21 Jun 2004 23:19 GMT
I still don't understand why the same Color displays a slightly different
shade depending on whether it's drawn directly to screen or first to an
off-screen buffer and then moved to the screen with drawImage(). Starting
with the same Color, and ending up on the same screen, where in the process
is the Color altered in the indirect draw?

> > I think 16 bit works with a colour palette, and each app has its own
> > palette.
[quoted text clipped - 12 lines]
>  DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
>   'Faith without judgement merely degrades the spirit divine.'
Andrew Thompson - 20 Jun 2004 17:23 GMT
> Does anybody know why the same Color displays a different shade depending on
> whether it's drawn directly to screen or first to an off-screen buffer?

I do not observe any difference in your example..
<http://www.physci.org/codes/sscce.jsp>

Signature

Andrew Thompson
http://www.PhySci.org/ Open-source software suite
http://www.PhySci.org/codes/ Web & IT Help
http://www.1point1C.org/ Science & Technology



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.