Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-10-2003, 09:55 PM
|
#1
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Rep:
|
Color: why is 32bit windows = 24bit linux ??
Hello...
it seems XFree86 supports a maximum of only 24bit colour.
but ive seen people saying linux gets the same number of colours out of 24bits, as windows gets from 32 bits.
is this true ?
if so can some-one explain to me how this is done ?
is it somthing to do with alpha channels and transparancy ???
thankyou.
|
|
|
12-10-2003, 10:28 PM
|
#2
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Original Poster
Rep:
|
ok, here's what ve found out, (but it only partially answers my question)...
8 bits in a byte,
1 byte for red
1 byte for green
1 byte for blue
1 byte for transparancy = 4 bytes or 32bits.
what it looks like is happening...
is windows is sat there saying "Hey, i got 32 bits of colour"
and linux is sat saying "Hey, i get 24 bits of colour, and 8 bits of transparency"
is this whole things just one of those "Ahaaaa but a thumb isnt a finger" kind of jokes ?
|
|
|
12-10-2003, 10:28 PM
|
#3
|
Member
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550
Rep:
|
You've got it right with the alpha channels. 32 bits add another 8 bits for each pixel which controls the alpha of that pixel. This allows cool effects like transparency but it means more processiing and memory is required. Right now X doesn't support 32 bits, only 24, and transparency is done in kind of a hackish way. Try turning it on in gnome-terminal, Eterm, what have you, and you'll see what I mean. Instead of being transparent so you can see the window below you will see the desktop wallpaper no matter how many windows you're on top of. The freedesktop Xserver project is working on transparency and right now it kind of works. Let's hope it matures enough into something really cool.
|
|
|
12-10-2003, 10:34 PM
|
#4
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Original Poster
Rep:
|
ahhh....
ok, i get it.
so its only X that is flawed in this way, i take it my games are capable of running in 32bit colour.
anyway, thanks.
|
|
|
12-10-2003, 10:39 PM
|
#5
|
Member
Registered: Jul 2003
Location: Virginia
Distribution: Ubuntu Hoary (5.04)
Posts: 550
Rep:
|
Many games will still work with 24 bit color. UT2003 for example actually runs better on Linux with color depth set to 32 bit (which we know X won't do) than if we set it back to 16 bit. Not sure why but that's what I've experienced.
|
|
|
12-10-2003, 10:41 PM
|
#6
|
LQ Guru
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672
Original Poster
Rep:
|
wow yeah, gnome-terminal SUCKS with transparency
when you say it kinda works now... is that a kind of works in a unstable beta, and will be stable in the distant future ?
|
|
|
All times are GMT -5. The time now is 07:01 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|