Image Data

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

2 posts / 0 new
Last post
Image Data

Submitted by Anonymous on Fri, 08/04/2000 - 01:29. Developers
Hi,
My application have overlapped hierarchical subwindows and text.... I wanted to get the image data of the final screen... which I see in the app. ....
I tried to get data by using XGetImage.... where XImage * will return char ptr to image data.
I wanted to use this data for CRC (Cyclic redenduncy Check)....
but On execution I get different CRC values for the same scrren....???? ( infact I should get same CRC val on every run)
Suggest me..... I tried to use XReadScreen for this, But compiler say it as undefined symbol...

help .... help ....
Thankx in advance.

Anonymous

Two issues come to mind. One is be sure the entire window you want is completely visible. XGetImage returns info the current screen, not the pure window itself. The other is that you are capturing pixels, which may be assigned different numeric values each time you run your program, even if the colors are the same.