Sign in to follow this  
Followers 0
JohnOne

Changing the colour of pixels in an image.

4 posts in this topic

#1 ·  Posted (edited)

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.

Share this post


Link to post
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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0