Author: Visual Web Developer | Posted on: 8/14/2010 11:41:42 AM | Views : 308

Hi,
I wonder how it can be possible to "Flip" an image vertically and set it to a control. The code compiles fine but no image is set to the control, setImage1b ?
String image1 = Server.MapPath("image1.jpg"); if (File.Exists(image1 )) { setImage1a.Attributes.Add("style", "background-image: url('image1.jpg')"); //How to flip the image1 vertically for this control ? System.Drawing.Image im = System.Drawing.Image.FromFile(image1); im.RotateFlip(RotateFlipType.Rotate180FlipX); setImage1b.Attributes.Add("style", "background-image: url(" + im + ")"); }
 
 
 
...

Go to the complete details ...