so I'm trying to make an application using pygame that requires image imports. I already know how to import an image using its path with pygame.image.import but it may be hard for the user to type or find the path of the image every time. so I have 2 options: 1- using a drag and drop system so that the user can drag the image from their desktop/ file explorer to the main window. 2- or the user can open the image themselves and my app would take a screenshot of it and import that. but i neither know how to take a screenshot using pygame nor how to take it when the window is minimized.
can someone guide me?