摘要 |
A method and apparatus for providing a screenshot service on a terminal device and a storage medium and device. The method for providing a screenshot service on a terminal device comprises: a producer thread responds to a received screenshot command instruction (S110), executes a screenshot operation (S120), and writes shot screen data into a buffer region (S130); and a consumer thread reads the screen data stored by the producer thread from the buffer region (S210), executes image processing on the screen data to generate a screenshot image (S220), and returns the screenshot image to an application which invokes a screenshot service (S230). Adopting a multi-thread mode of a producer/consumer to complete a screenshot service respectively through a producer thread used for executing screen shooting and a consumer thread used for executing image processing on shot screen data can especially reduce screenshot time on a portable terminal device with limited processing capability, and can complete the screenshot service within tens of milliseconds. |