Edit.
Trådstart#1
EDIT: (det var egentligen en html-fråga som hamnade fel men jag gör om den till en asp.net fråga ).
Har gjort ett galleri där jag skapar thumbnails. Tänkte försöka göra svagt runda hörn. Hur gör man för att färga varje pixel till en valfri färg i respektive hörn?
System.Drawing.Image oImg = System.Drawing.Image.FromFile(sPhysicalPath + sOrgFileName);
System.Drawing.Image oThumbNail = new Bitmap(136, 102, oImg.PixelFormat);
System.Drawing.Graphics oGraphic = System.Drawing.Graphics.FromImage(oThumbNail);
oGraphic.CompositingQuality = CompositingQuality.Default;
oGraphic.SmoothingMode = SmoothingMode.Default;
oGraphic.InterpolationMode = InterpolationMode.High; //HighQualityBicubic;
Rectangle oRectangle = new Rectangle(0, 0, 136, 102);
oGraphic.DrawImage(oImg, oRectangle);
oThumbNail.Save(sPhysicalPath + @"\" + sThumbNailFileName, oFormat);
oImg.Dispose();