How to Get Image Brightness Value at Specified Location?

I am looking for something like Surface.PointAtParameter but for Image objects.

I would like to give a location in terms of X-Y/Width-height (0-1) of the image and get the brightness value at that specific location.

Is the only way to use Image.Pixels with lots of samples and then match the XY values with the list indexes? (which is fine but just terribly slow)

Thanks

That’s how I would do it (and as far as I most GUI based image editors would too). Limiting your samples (pixels) to the number contained in the image may help.

1 Like

Great, was important for me to know that this is the way.
I guess I was using too big images, reducing their size improved speed without any visible loss of information.