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:
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
Post a Comment