c++运行imagemagick命令
c++ run imagemagick command
我想在后台执行imagemagik命令,而不是使用ShellExecute或ShellExecuteEx显示窗口控制台,但无法获得输出文件。
ShellExecuteEx(0, _T("open"), _T("D:/convert.exe"),
_T("convert clipboard:myimage test.png"), NULL, SW_HIDE)
这与其说是一个答案,不如说是一条评论。如果您已经在编写c++应用程序,为什么不将Magik++库包含到您的项目中呢?
#include <Magick++.h>
// ...
Magick::Image img("clipboard:myimage");
img.write("test.png");
// ...
如果你写了ShellExecuteEx
,我假设这是Windows?
请参阅如何在不显示Win32 GUI程序的控制台窗口的情况下执行子控制台程序?
相关文章:
- 从命令行c++发送文本文件名
- 如何使用 < 和 > 命令获取 c++ 中的输入和输出?
- 为cl.exe(Visual Studio代码)指定命令行C++版本
- 如何在OMNET++中指定与命令行参数组合的输出文件名
- 使用QProcess执行命令,并将结果存储在QStringList中
- 数组长度,为什么从命令行获取时不能使用它?
- 如果用户输入无效,如何使用字符串变量-C++重复输入命令
- clang整洁10忽略了我的NOLINT命令
- 在子目录中使用target_sources()命令时用于单元测试(qtest)的项目结构
- 如何处理linux终端中带有负号(-)的C++中的命令行参数
- VS Code "command":"make"与终端窗口中的命令行"make"不同
- 使用VS Code和CMake Tools运行自定义命令
- 如何使用ESP8266向谷歌主页发送命令
- 如何使 windows 命令提示符在C++可执行文件上显示返回值?
- 未定义的引用 .. 使用 OpenCV 编译 C++ 代码时,从命令行
- 通过 Openssl 命令行加密,通过 c++ 解密
- CMake "--target install"无需"--build"命令行
- Gstreamer 管道从命令 lne 到 c 代码
- 自动"yes"到 Popen SSH 命令
- c++运行imagemagick命令