Are there security concerns?

Since WindowCapture2D captures screens from other applications, they may contain sensitive information. When using, ensure no confidential information is displayed in the capture target application.