Easily integrate flameshot into your application by leveraging it's simple cli api now easily integrated in rust with this crate.
This example is using the 'image' crate feature.
//use flameshot::FullArgs;
use GuiArgs;
//use flameshot::ScreenArgs;
//////////////////////////////////////////////////////////////////////
// If we enable "image" library Feature, we will be able to convert//
// a FlameshotOutput into a DynamicImage form rust Image crate. //
///////////////////////////////////////////////////////////////////
Make sure to install flameshot and add it to your env path. Now you are ready to use this crate to grab screenshots using flameshot while being able to optionally get a dynamic_image of the screenshot for manipulation. If you don't want to use dynamic_image or image crate at all you can find the raw image in the stdout field of FlameshotOutput.output
Check out other examples.