Posted on: 3/29/2012 12:08:27 PM | Views : 414

hi
i have code from dynamicaly generated gradint image use four colors..its worked fine...but i want one by one color dynamicaly change  size...
how to set  gradiant color size for one by one....pls help me ...my code is below......
protected void Page_Load(object sender, EventArgs e) { image1(); } public void image1() { Response.Clear(); string encoded = "100"; Bitmap imgOutput = new Bitmap(30, 100, PixelFormat.Format24bppRgb); Graphics g = Graphics.FromImage(imgOutput); Graphics.FromImage(imgOutput); g.Clear(Color.White); Font drawFont = new Font("Arial", 12); SolidBrush drawBrush = new SolidBrush(Color.Black); LinearGradientBrush brush = new LinearGradientBrush(new Rectangle(0, 1, 30, 100), Color.Yellow, Color.Blue, LinearGradientMode.Horizontal); float a = 0.0f; float b = 0.3f; fl ...

Go to the complete details ...