Pixmaps - Xwindows

This is a discussion on Pixmaps - Xwindows ; I have a Pixmap and want to find the value of a pixel at an x,y location. What's a good way to do this? Thanks Paul...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Pixmaps

  1. Pixmaps

    I have a Pixmap and want to find the value of a pixel at an x,y location. What's a good way to do this?

    Thanks
    Paul


  2. Re: Pixmaps

    On 2007-10-07, Paul Thompson wrote:
    >
    > I have a Pixmap and want to find the value of a pixel at an x,y
    > location. What's a good way to do this?


    You can use XGetImage, to get any rectangular region of a drawable
    (including all of it, or a single pixel), as an XImage.

    P.S. please make sure to wrap your text at 72 columns before posting.

    --
    John Tsiombikas (Nuclear / Mindlapse)
    http://nuclear.sdf-eu.org/

+ Reply to Thread