module

PointClickEngine::Graphics::Utils::Screenshot

Screenshot capture and management

Instance methods

capture

Take a screenshot of the current screen

Source
capture_auto(directory : String = "screenshots", prefix : String = "screenshot") : String | Nil

Take a screenshot with automatic naming

Source
capture_region(x : Int32, y : Int32, width : Int32, height : Int32) : RL::Image

Capture a specific region of the screen

Source
capture_thumbnail(width : Int32 = 320, height : Int32 = 180) : RL::Image

Capture thumbnail

Source
capture_to_file(filename : String, format : Format = Format::PNG) : Bool

Take a screenshot and save to file

Source
capture_with_effect(effect : Proc(RL::Image, RL::Image)) : RL::Image

Capture with post-processing

Source
capture_with_overlay

Create a screenshot with UI overlay

Source
compare(image1 : RL::Image, image2 : RL::Image, threshold : Float32 = 0.01_f32) : Bool

Screenshot comparison for testing

Source
save_thumbnail(filename : String, width : Int32 = 320, height : Int32 = 180) : Bool

Save thumbnail

Source

Nested types