in reply to Re: Using Win32::GUI::DIBitmap for screen capture
in thread Using Win32::GUI::DIBitmap for screen capture

You are getting the DC for the desktop. $windows[0]->{handle} is null.