MCPcopy Create free account
hub / github.com/EasyRPG/Player / CaptureScreen

Method CaptureScreen

src/baseui.cpp:65–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65BitmapRef BaseUi::CaptureScreen() {
66 BitmapRef capture = Bitmap::Create(main_surface->width(), main_surface->height(), false);
67 capture->BlitFast(0, 0, *main_surface, main_surface->GetRect(), Opacity::Opaque());
68 return capture;
69}
70
71void BaseUi::CleanDisplay() {
72 main_surface->Clear();

Callers 1

InitMethod · 0.80

Calls 4

widthMethod · 0.80
heightMethod · 0.80
BlitFastMethod · 0.80
GetRectMethod · 0.80

Tested by

no test coverage detected