PointClickEngine::Graphics::Utils::Screenshot
Screenshot capture and management
Instance methods
capture_auto(directory : String = "screenshots", prefix : String = "screenshot") : String | Nil
Take a screenshot with automatic naming
capture_region(x : Int32, y : Int32, width : Int32, height : Int32) : RL::Image
Capture a specific region of the screen
capture_to_file(filename : String, format : Format = Format::PNG) : Bool
Take a screenshot and save to file
capture_with_effect(effect : Proc(RL::Image, RL::Image)) : RL::Image
Capture with post-processing
compare(image1 : RL::Image, image2 : RL::Image, threshold : Float32 = 0.01_f32) : Bool
Screenshot comparison for testing
save_thumbnail(filename : String, width : Int32 = 320, height : Int32 = 180) : Bool
Save thumbnail