c++ - Xlib - Problems taking an screenshot -


i'm developing c++ program takes screenshot xlib.

first of open display , ximage pointer xgetimage().

after can pixels xgetpixel(). returns decimal value, have convert rgb.

now, simplest method save ".ppm" image. works fine something fails:

¿transparency?

some pixel's colours wrong.

the ppm depth 24 bits, think problem may transparency but,

¿ problem ? ¿ how can alpha channel ?

¿ should use library opengl ?

thanks!


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -