The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
Google UNIX.COM


High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
LUN mapping user23 UNIX for Dummies Questions & Answers 1 04-18-2008 08:28 AM
Converting Binary decimal coded values to Ascii Values gaur.deepti UNIX for Advanced & Expert Users 3 04-02-2008 09:33 AM
Lowdown on Pixel Script-PHP based tufat123 Shell Programming and Scripting 0 06-20-2006 10:37 AM
xlib blues (XFree86 - Linux) Alux High Level Programming 1 12-01-2005 04:44 AM
Xlib: Invalid MIT-MAGIC-COOKIE-1 errolg UNIX for Dummies Questions & Answers 1 07-25-2002 01:05 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-15-2008
Registered User
 

Join Date: Jan 2008
Posts: 1
Question Xlib - Mapping Pixel Values to RGB Colors

Hi everyone...
I'm working with XLib and I want to find out the pixel value of a particular point on screen and then map it to RGB values. I used XGetImage and XGetPixel to get the pixel value, but how do I get the RGB values of the pixel?
I went through a few XLib manuals, there seems to be no way. Any solution?
Reply With Quote
Forum Sponsor
  #2  
Old 03-21-2008
Registered User
 

Join Date: Mar 2008
Posts: 21
Quote:
Originally Posted by thebin View Post
Hi everyone...
I'm working with XLib and I want to find out the pixel value of a particular point on screen and then map it to RGB values. I used XGetImage and XGetPixel to get the pixel value, but how do I get the RGB values of the pixel?
I went through a few XLib manuals, there seems to be no way. Any solution?
I'm thinking of that,too.

I found XQueryColor function. below article is good!
Screen grab with X11

I succeed by XQueryColor.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 04:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0