Is it possible to do these 3 things below?
- Get an image from database and show it as a background image of a div
- Make the image position relative so that labels can be on the image while the image is the background and labels position will remain unchanged
- Make the image translucent i.e., increase its opacity, to make it slightly faint to see.
What I have below displays image in an asp image control. Can this same code be used to display image in background of a div tag and make the image opaque?
byte bytes = (byte)dr["Logo"];
img11.ImageUrl = "data:image/jpeg;base64," + Convert.ToBase64String(bytes);