Screen Capture Quick Reference
Switch Capture Provider
Method 1: Properties File ✅ (Recommended)
# application.properties
# Default is already SIKULIX, but you can change it:
brobot.capture.provider=SIKULIX # Default (or ROBOT, FFMPEG, AUTO)
# DPI auto-detection is enabled by default:
brobot.dpi.resize-factor=auto
Method 2: Command Line
java -Dbrobot.capture.provider=FFMPEG -jar myapp.jar
Method 3: Runtime Code
@Autowired
private CaptureConfiguration config;
config.useRobot(); // Switch to Robot
config.useFFmpeg(); // Switch to FFmpeg (JavaCV)
config.useSikuliX(); // Switch to SikuliX
Provider Comparison
Provider | Dependencies | Resolution | Performance | Setup | Default |
---|---|---|---|---|---|
SikuliX | SikuliX (included) | Auto-handled | Good | None | ✅ Yes |
Robot | None | Physical* | Fast | None | No |
FFmpeg | JavaCV (included) | Physical | Good | None | No |
*Robot scales logical to physical when DPI scaling detected
SikuliX uses auto resize-factor for DPI handling