Functions | |
void | (const std::function< void(bool, const std::string &)> &afterCaptured, const std::string &filename) |
Capture the entire screen To ensure the snapshot is applied after everything is updated and rendered in the current frame, we need to wrap the operation with a custom command which is then inserted into the tail of the render queue. More... | |
void cocos2d::utils::captureScreen | ( | const std::function< void(bool, const std::string &)> & | afterCaptured, |
const std::string & | filename | ||
) |
Capture the entire screen To ensure the snapshot is applied after everything is updated and rendered in the current frame, we need to wrap the operation with a custom command which is then inserted into the tail of the render queue.
afterCaptured,specify | the callback function which will be invoked after the snapshot is done. |
filename,specify | a filename where the snapshot is stored. This parameter can be either an absolute path or a simple base filename ("hello.png" etc.), don't use a relative path containing directory names.("mydir/hello.png" etc.) |
var captureScreen | ( | var | afterCaptured, |
var | filename | ||
) |
Capture the entire screen To ensure the snapshot is applied after everything is updated and rendered in the current frame, we need to wrap the operation with a custom command which is then inserted into the tail of the render queue.
afterCaptured,specify | the callback function which will be invoked after the snapshot is done. |
filename,specify | a filename where the snapshot is stored. This parameter can be either an absolute path or a simple base filename ("hello.png" etc.), don't use a relative path containing directory names.("mydir/hello.png" etc.) |
local captureScreen | ( | local | afterCaptured, |
local | filename | ||
) |
Capture the entire screen To ensure the snapshot is applied after everything is updated and rendered in the current frame, we need to wrap the operation with a custom command which is then inserted into the tail of the render queue.
afterCaptured,specify | the callback function which will be invoked after the snapshot is done. |
filename,specify | a filename where the snapshot is stored. This parameter can be either an absolute path or a simple base filename ("hello.png" etc.), don't use a relative path containing directory names.("mydir/hello.png" etc.) |