Magick++ equivlent of terminal command.
Posted: 2019-07-10T19:14:23-07:00
Hello,
I have successfully written a C++ program for Linux that imitates the fade transitions for wallpapers in Windows 10. However, it uses a terminal command to do the compositing as I can't figure out how to do it in C++. I would like to do it in C++, as I believe it would be much faster due to it being compiled rather than interpreted.
The command that I need a Magick++ translation of is (this sits in a for loop that runs 20 times, hence the 'i*5' bit):
Thank you,
I have successfully written a C++ program for Linux that imitates the fade transitions for wallpapers in Windows 10. However, it uses a terminal command to do the compositing as I can't figure out how to do it in C++. I would like to do it in C++, as I believe it would be much faster due to it being compiled rather than interpreted.
The command that I need a Magick++ translation of is (this sits in a for loop that runs 20 times, hence the 'i*5' bit):
Code: Select all
composite -blend (i*5) newpic ~/Pictures/resizeOld.jpg ~/Pictures/transition.jpg