Get Pixel

Hi ,

     Does anyone know how to get the pixel color of the image.

   

     please kindly post if anyone knows.

thanks.

Currently this is not possible in Corona.

Thanks,

 but is there any way to achieve it , like converting the image to some other format and then getting pixel , something like that…

If you understand the format the image is in you could open the file and read it that way. In-memory pixel access of images is not the way, at present.

Thanks horacebury,

                         

just last one , how the floodfill is implemented if we can’t the access the pixel color of the image…

Is there other way around ?

I don’t think I’ve seen Corona do a floodfill. Perhaps its coming in Graphics 2.0, but that is not available yet.

FYI: You shouldn’t create duplicate threads - this question was asked here by you: http://forums.coronalabs.com/topic/36867-get-color-from-the-image/

Unfortunately, this is not the sort of thing which Corona is designed for at present. It is much more for 2D games and, to a lesser extent (for now), biz apps. 3D is also not supported, for example.

If you find that your thread is not getting responses, wait a day or so (don’t be aggressive) and post a comment on the same thread with more detail about the problem. Consider revising the question in case it was not clear. Your question, however, is clear and right now the answer is an also clear No, I’m afraid.

Thanks for everything

Currently this is not possible in Corona.

Thanks,

 but is there any way to achieve it , like converting the image to some other format and then getting pixel , something like that…

If you understand the format the image is in you could open the file and read it that way. In-memory pixel access of images is not the way, at present.

Thanks horacebury,

                         

just last one , how the floodfill is implemented if we can’t the access the pixel color of the image…

Is there other way around ?

I don’t think I’ve seen Corona do a floodfill. Perhaps its coming in Graphics 2.0, but that is not available yet.

FYI: You shouldn’t create duplicate threads - this question was asked here by you: http://forums.coronalabs.com/topic/36867-get-color-from-the-image/

Unfortunately, this is not the sort of thing which Corona is designed for at present. It is much more for 2D games and, to a lesser extent (for now), biz apps. 3D is also not supported, for example.

If you find that your thread is not getting responses, wait a day or so (don’t be aggressive) and post a comment on the same thread with more detail about the problem. Consider revising the question in case it was not clear. Your question, however, is clear and right now the answer is an also clear No, I’m afraid.

Thanks for everything