[Xcb] BitBlt like method?

Josh Triplett josh at joshtriplett.org
Mon Nov 23 12:58:38 PST 2009


On Mon, Nov 23, 2009 at 01:12:35PM -0400, Nadeem Syed wrote:
> 
> " Summary: don't. There's probably a better way to do what you're really
>   trying to do. Why are you trying to scan a pixmap for a specific
>   color? "
> 
>  
> 
> Is there a better way to scan for a specific color? Please do tell :) Or would it be better to go back to Xlib if there is no good solution for XCB yet?

I think you've missed the point of the email you replied to entirely.
Please, explain what larger problem you want to solve that you believe
requires scanning for a particular color in a window, and we can almost
certainly tell you an easier and more efficient way to solve the same
problem.

Mechanisms exist in the X protocol to get a pixmap, with which you could
scan for a color, and XCB can access those mechanisms just as Xlib can.
That doesn't make using them a good idea.

- Josh Triplett


More information about the Xcb mailing list