thpatch / thcrap-tsa

Basic thcrap patches maintained by the Touhou Patch Center developers
https://www.thpatch.net
23 stars 13 forks source link

Automatically save screenshots as PNG files instead of BMP #10

Closed nmlgc closed 2 years ago

nmlgc commented 9 years ago

Since we already use libpng for image patching and sprite boundary dumping, this could very easily be done without requiring any game-specific code by detouring the Windows file APIs. One caveat, though:

(21:00:53) linkmauve1: Warning about that, PNG is very slow to encode.
(21:01:24) linkmauve1: If possible store the raw image data in a buffer and pass it to an encoding thread.