Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-10-2006, 07:38 PM   #1 (permalink)
Broken In
 
Join Date: Dec 2005
Location: goa
Posts: 161
Default Convert Color 32bit to 16bit


Anyone knows code to color 32bit color pixel value to 16bit value
rajesh_nk22 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 11-10-2006, 07:41 PM   #2 (permalink)
gooby pls
 
Third Eye's Avatar
 
Join Date: Apr 2006
Location: Not very far from you
Posts: 4,293
Default Re: Convert Color 32bit to 16bit

Quote:
Originally Posted by rajesh_nk22
Anyone knows code to color 32bit color pixel value to 16bit value
For what ?
__________________
:|
Third Eye is offline  
Old 11-10-2006, 07:45 PM   #3 (permalink)
Alpha Geek
 
jz2linkinpark's Avatar
 
Join Date: Jul 2006
Location: Rorikstead
Posts: 560
Default Re: Convert Color 32bit to 16bit

right-click, properties, settings, color quality, High (32 bit)
__________________
(\__/)
(='.'=)This is Bunny. Copy and paste bunny into your
(")_(")signature to help him gain world domination.
jz2linkinpark is offline  
Old 11-10-2006, 09:57 PM   #4 (permalink)
Wise Old Crow
 
blueshift's Avatar
 
Join Date: Apr 2005
Location: Inside the Pixel
Posts: 1,227
Default Re: Convert Color 32bit to 16bit

Be specific when you ask questions here!
blueshift is offline  
Old 12-10-2006, 01:13 AM   #5 (permalink)
Wise Old Owl
 
aadipa's Avatar
 
Join Date: Feb 2004
Location: Palghar, Mumbai
Posts: 1,000
Default Re: Convert Color 32bit to 16bit

32 bit colors are RGBA values each channel taking 8 bits
R - Red
G - Green
B - Blue
A - alpha

16 bit colors are RGB with 5 bits for each, or sometimes 6 bits for green, and 5 for Red and Blue each. More bits to green is because human eye can see more shades of green.

For converting a color from 32 to to 16 bit, each 8 bit color value must be scaled to proper 5 bit color value.

ie Red in 16-bit = Red in 32-bit * 2^5 / 2^8
ie Red in 16-bit = Red in 32-bit / 8

Hope this is what you wanted.
__________________
i generally prefer quality over quantity
1 aadi + 1 aadi = 1 full ;)
aadipa is offline  
Old 12-10-2006, 01:44 PM   #6 (permalink)
Broken In
 
Join Date: Dec 2005
Location: goa
Posts: 161
Default Re: Convert Color 32bit to 16bit

Sorry, for not posting question in details.
I have developed application in VB, which reads color values on screen using getpixel api, so whenever I use this api, I get different color values depending upon display properties set on my computer. If I change color quality from 32 bit(default where my application works) to 16 bit or 256 bit color value changes. To solve this problem, I want a function to convert 32bit color value to 16bit value.
rajesh_nk22 is offline  
Old 12-10-2006, 03:43 PM   #7 (permalink)
Wise Old Owl
 
aadipa's Avatar
 
Join Date: Feb 2004
Location: Palghar, Mumbai
Posts: 1,000
Default Re: Convert Color 32bit to 16bit

in that case my explanation should be enough to get you started.
__________________
i generally prefer quality over quantity
1 aadi + 1 aadi = 1 full ;)
aadipa is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear
- by abhidev
- by clmlbx
- by Sarath

Advertisement




All times are GMT +5.5. The time now is 04:49 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2