Jump to content
Macro Express Forums

Pixel Color- Create Image


Recommended Posts

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?





Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...