Hello,
For screenshots, Maui officially provides an out-of-the-box API as a solution. You can refer to the following documents and sample codes.
public async Task<ImageSource> TakeScreenshotAsync()
{
if (Screenshot.Default.IsCaptureSupported)
{
IScreenshotResult screen = await Screenshot.Default.CaptureAsync();
Stream stream = await screen.OpenReadAsync();
return ImageSource.FromStream(() => stream);
}
return null;
}
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.