Sign in to follow this  
Followers 0
eitan

load image and read pixel

5 posts in this topic

hi

i need a script that will load an image and then read a pixels color and return it.

i tried using imagesplashon but it didnt work

thanks

Share this post


Link to post
Share on other sites



Have to say:

i tried using imagesplashon but it didnt work

I hadn't heard of this function imagesplashon() in autoit? B)

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

i think he means "splashimageon" heh


Valik Note Added 19 October 2006 - 08:38 AMAdded to warn level I just plain don't like you.

Share this post


Link to post
Share on other sites

thanks a lot larry!!

i am still having a problem.

i am getting the result FFFFFF no matter what image i use

can u help?

is their a difference if i use bmp,gif or jpg?

thanks again

this loads an image and msgboxs the (RGB) color at 62,82.

Share this post


Link to post
Share on other sites

hi, i am going to do some simple image processing.

The code does work, thanks a lot!!!

If you have trouble:

make sure you define the path of the file properly (e.g. 'c:\mypic.bmp')

also make sure that the pixel coordinate is not out of the image,

otherwise unfortunately, in both cases the program will answer FFFFFF

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