Jump to content

Changing the colour of pixels in an image.


Recommended Posts

Hoping to be able to use .bmp image. I'm taking a screenshot of a region of screen.

The image I want is circular, which means the four corners of the shot have different colours.

For example the circle is blue, and the background is of varying colours and shades.

So I'd like to be able to change the offending corner pixels to blue before saving to disk.

The positions of the offending pixels in the shots will always be constant.

I'm guessing I'll need the voodoo of GDI to go about this but I have no Idea where to start, so any pointers are very welcome and much appreciated.

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

I take it back, I had it in my head that I could

$hBitmap = _ScreenCapture_Capture("",$Left,$Top,$Right,$Bottom,False)

But it seems that function only return a bitmap object if

$hBitmap = _ScreenCapture_Capture("")

So still looking for a starting point.

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...