color problem when capture the object window [message #38618] |
Thu, 11 March 2004 12:50 |
lius02
Messages: 6 Registered: November 2003
|
Junior Member |
|
|
Hi Guys,
I meet a color problem when capture the images of object window. I
have a small program with 5 object windows and I use following codes
to change the color table and capture the display in the window
;call xloadct
xloadct, /modal, group = event.top
;get the changed color table
tvlct, R, G, B, /get
;change the palette object
opalette ->setProperty, red_values = R, green_values = g, blue_values
= b
;capture the window display
draw_id -> getProperty, image_data = data
If using BW color table, the captured screen image is correct,
otherwise, the color of the captured screen image is not correct. I
cannot figure out the problem. Any suggestions will be highly
appreciated.
Thanks,
Songtao
|
|
|