XWindows: XGetPixel problems!!!

XWindows: XGetPixel problems!!!

Post by Janusz Skrzypkows » Thu, 11 May 1995 04:00:00



Hi,
I'm porting Borland's BGI to XWindows. To do so I'm using
another graphics library so I haven't had to do Xlib
programing so far. Unfortunately the library doesn't do any
getpixel stuff. I had to use XGetPixel together with XGetImage,
it's working fine but:
1) I can't figure out what the return value of XGetPixel is.
   Manual says the value is in "the clients bit- and byte-order"
   which I don't undersand.
2) It's terribly slow, after several XGetPixel calls my computer
   (PC running Linux) slows down and eventually blocks with
   processing the calls, sometimes stops with "no virtual memory"
   message. There must be a way to make such simple things work
   faster.

Please help, thank you in advance.

Janusz Skrzypkowski.

 
 
 

1. XWindows: XGetPixel problems!!!!

Hi,
I'm porting Borland's BGI to XWindows. To do so I'm using
another graphics library so I haven't had to do Xlib
programing so far. Unfortunately the library doesn't do any
getpixel stuff. I had to use XGetPixel together with XGetImage,
it's working fine but:
1) I can't figure out what the return value of XGetPixel is.
   Manual says the value is in "the clients bit- and byte-order"
   which I don't undersand.
2) It's terribly slow, after several XGetPixel calls my computer
   (PC running Linux) slows down and eventually blocks with
   processing the calls, sometimes stops with "no virtual memory"
   message. There must be a way to make such simple things work
   faster.

Please help, thank you in advance.

Janusz Skrzypkowski.

2. GXE 64 pro and Xfree

3. aha 2940 installed problem

4. XGetPixel problems!!!!

5. 2.1R works... 2.1-stable doesn't...

6. AIX Xwindow -> Linux Xwindow

7. test -- please ignore

8. Need Help to run school's xwindow programs on linux's xwindow

9. Xwindows Xwindows, TRIDENT VLB 9200c doesnot work on 486/8

10. Xwindows trashes my CRT after I quit Xwindows

11. Re (2): XWindow Managers -- resetting XWindow???

12. 8 bit Xwindows inside a 16bit (or more) Xwindow?