Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to achieve Screenshot by C++

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the C++ how to achieve screenshot screenshot, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.

1. Screenshot tool 1.1 Keyboard screenshot (PrtScn key)

How to use the Print Screen (print screen) key in Microsoft Windows operating system

(1) Print Screen key

After pressing, capture the entire screen to the clipboard. Can be copied to other software, such as system drawing tools, Office Word and so on.

(2) Alt+Print Screen key combination

After pressing, capture the picture of the currently active window to the clipboard.

1.2 win10 comes with screenshot (Win+Shift+S)

After pressing the key combination, use the mouse to draw the rectangular area you want to intercept on the screen and automatically save it to the system clipboard.

1.3 screenshot gadgets included with the system

1.4 ffmpeg

Ffmpeg-I "input video"-fflags nobuffer-t 60-ss 0 "output address"

Description: it means to intercept the input video clips from 0 to 60 seconds and save them to the output address.

-ss n: start time is nth second

-t n: the total duration of the intercepted clips is n seconds

After running, a screenshot will be generated: out1.jpg out2.jpg out3.jpg …

Ffmpeg-I fight.mp4-r 1-t 200-ss 1-f image2 out%d.jpg1.5 ScreenToGif

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report