imageCapture

Methods
3
Fields
None

Getting one

imageCapture

Methods

MethodReturnsDescription
saveScreenshot(BufferedImage, string, string?, boolean, boolean)()Save screenshot as a PNG: in the player's folder (<name>[-<profile type>], then subDir), named fileName plus the local time, (n)…
takeScreenshot(string?, string, boolean, boolean)()Take the next composited game frame and save it as saveScreenshot does. The client frame (Bento's window chrome) is never part of it.
requestNextFrame((BufferedImage?) -> ())()Call listener(image) with the next composited game frame as a BufferedImage, at the invoke point after it was drawn, or with nil when n…

Method details

saveScreenshot

saveScreenshot: (ImageCapture, BufferedImage, string, string?, boolean, boolean) -> ()

Save screenshot as a PNG: in the player's folder (<name>[-<profile type>], then subDir), named fileName plus the local time, (n) while taken; nothing on the login screen. With saveToClipboard the image also goes on the clipboard; with notify a notification says where it went (at the next invoke point: the file is written off the client thread).

takeScreenshot

takeScreenshot: (ImageCapture, string?, string, boolean, boolean) -> ()

Take the next composited game frame and save it as saveScreenshot does. The client frame (Bento's window chrome) is never part of it.

requestNextFrame

requestNextFrame: (ImageCapture, (BufferedImage?) -> ()) -> ()

Call listener(image) with the next composited game frame as a BufferedImage, at the invoke point after it was drawn, or with nil when no frame could be read back. Any plugin may ask at any time.