websss
asked on
showing pixel data on hover of image - each pixel needs to access and object to pull out relevant info which is in C# code behind.
Hi
I have an image which is 320x240 pixels
When the user hovers over the image, it needs to show the selected (hovered) pixel data on the screen
I've got it working with the co-ordinates, however I have an object with other data that relates to the pixel
You can see here the pixels 0,0 = 280:
....instead of showing the coordinates, I need to show the reading which corresponds to those pixels as seen here:
I've attached a basic project which you should be able to fire up and instantly see it in action. (needs to be renamed as a rar file )
I'm guessing I need to write the code behind object to a Javascript object, and then use this on the hover?
any help appreciated here!
mm2Test.rar.txt
I have an image which is 320x240 pixels
When the user hovers over the image, it needs to show the selected (hovered) pixel data on the screen
I've got it working with the co-ordinates, however I have an object with other data that relates to the pixel
You can see here the pixels 0,0 = 280:
....instead of showing the coordinates, I need to show the reading which corresponds to those pixels as seen here:
I've attached a basic project which you should be able to fire up and instantly see it in action. (needs to be renamed as a rar file )
I'm guessing I need to write the code behind object to a Javascript object, and then use this on the hover?
any help appreciated here!
mm2Test.rar.txt
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Would you mind posting the relevant code files only instead of the entire project. You have been asking this question for a while now, I want to help but I have a strict anti-project file policy. You can use Code tags and post multiple comments also if you want to split your files. I don't need the entire project just couple of important ones - rest I will figure out.
Regards,
Chinmay.