HELP: Image Coordinates ??
Posted: Mon Feb 23, 2015 7:45 pm
I've been building web pages for 15 years, and not once have I ever (intentionally) used those fancy png or jpg image files that have multiple versions of themselves inside - like a link and hover image. Example:
Depending on the application state, one of these colored images shows up on a button. For example, not authenticated the button might be the top one (dark) but ready to play, it's Green. If an error, it's Red. Instead of 4 jpgs, they are all in a single jpg.
Problem: I have no idea what this is called (technologically speaking) so I cannot begin to Google how to do this in C# Does anyone know the official technical term for displaying a region of an image dynamically?
~blush~ I really should know this, but embarrassingly, I do not. Thanks in advance.
Edit: If this helps, here's a CSS of what the button might look like
Oh crap, are you telling me that all this is doing is on Hover, move the margin -27 or something? heh... ok, I'm done editing. Anyone?
Depending on the application state, one of these colored images shows up on a button. For example, not authenticated the button might be the top one (dark) but ready to play, it's Green. If an error, it's Red. Instead of 4 jpgs, they are all in a single jpg.
Problem: I have no idea what this is called (technologically speaking) so I cannot begin to Google how to do this in C# Does anyone know the official technical term for displaying a region of an image dynamically?
~blush~ I really should know this, but embarrassingly, I do not. Thanks in advance.
Edit: If this helps, here's a CSS of what the button might look like
Code: Select all
background: url('images/wrapper/window-controls.png?h=658e8dc0') repeat-x scroll 0px 0px transparent;