Does anyone know how FogBugz implemented the "taking a screenshot of the current work screen" feature? Is this done purely via php? Perl? A flash script?
2 回答
FogBugz 包含一个适用于 Mac 或 Windows 的小型应用程序,它获取屏幕抓取,然后 HTTP 将其发布到 FogBugz 中的页面,该页面将图像放入数据库并将其附加到案例中。它非常简单。如需更强大的功能,请查看TechSmith SnagIt,它具有FogBugz 集成,如内置工具。
FogBugz 屏幕截图实用程序的 Windows 版本是用 C++ 和 MFC 编写的——它是一个 Windows 应用程序,它通过获取兼容的 DC 并将屏幕 bitblt 插入其中,然后转换为 PNG 来工作。Mac 版本是使用 Real Basic 编写的,并且依赖于内置的 Grab 功能。
I'm quite sure this isn't how FogBugz does it, but it can be done entirely server-side in perl using WWW::Mechanize::Firefox's content_as_png method (running Firefox on a server and talking to it via the Mozrepl plugin).
Update: I see there are a number of questions with the webpage-screenshot tag; you might take a look through them and see if there's an answer that works for you there.