如何使用ImageMagick++轻松地在C++中为X11屏幕截图,类似于“导入”命令?
发布于 2010-11-04 00:47:39
利用线人,卢克。如果您在ImageMagick++中找不到它,请重新使用它的依赖项。您要查找的代码位于ImageMagick/wand/import.c中:
% ImportImageCommand() reads an image from any visible window on an X server
% and outputs it as an image file. You can capture a single window, the
% entire screen, or any rectangular portion of the screen. You can use the
% display utility for redisplay, printing, editing, formatting, archiving,
% image processing, etc. of the captured image.</dd>如果你不想把它放到一个文件中,你就必须弄清楚代码本身在做什么。这似乎是代码中执行可访问X11显示的实际捕获的唯一位置,因此它是您的起点。
发布于 2010-11-04 00:43:50
根窗口上的XGetImage?
https://stackoverflow.com/questions/4089320
复制相似问题