i don't have free image but from a quick look could probably do something like this
instead of saving the file get the bitmap handle from CaptureImageOnScreen
instead of saving the file get the bitmap handle from CaptureImageOnScreen