patgenn123 Posted October 18, 2008 Report Share Posted October 18, 2008 Hello all! I am doing a project in which I need to get a small piece of the computer program screen(via Get Pixel), put it into a text file(with CRLFs, of course) and re-create that image in Microsoft's very own "paint" program. When done, I need to do something with it(not yet known). How do you convert those pixel coordinates to color and so forth? Thanks! Pat Quote Link to comment Share on other sites More sharing options...
terrypin Posted October 19, 2008 Report Share Posted October 19, 2008 Why use Get Pixel? In fact, I don't see how you could do it by that method. As I understand it, you want to copy a rectangular section of the screen and make that a new image in Paint, yes? So why not do it as you would do it manually, namely 1. Capture to clipboard with a screen capture program (or the Prt Scr key) 2. Open Paint 3. Paste. Use the known co-ordinates of the target rectangle with Mouse Move and dragging commands to specify it before your capture, if using aprogram like Snagit. Or do that afterwards in Paint if you've captured the whole screen with Prt Scr, and paste that extract to a new file. -- Terry, East Grinstead, UK Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.