So, lets say you are trying to draw a button dynamically using System.Drawing. You pull in the corners from an existing png file but the corner edges are white, so when overlaying they look funny.
Here is what we do:
- Bitmap bmp = new Bitmap(width, height, PixelFormat.Format32bppArgb);
- Bitmap left = new Bitmap(Server.MapPath("~/custom/controls/button/btn_tall_off_left.png"));
- left.MakeTransparent(Color.White);
No comments:
Post a Comment