Jump to content

Recommended Posts

Posted

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

  • Moderators
Posted

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.

Posted

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.

  • 7 months later...
Posted

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

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
  • Recently Browsing   0 members

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