Draw bitmap image in asp.net (c#) [Resolved]

Posted by S.Preeti under ASP.NET on 10/31/2012 | Points: 10 | Views : 10964 | Status : [Member] | Replies : 2
How to Draw bitmap image in asp.net (c#) ?
plz give some exmpl...?




Responses

Posted by: Ranjeet_8 on: 10/31/2012 [Member] [MVP] Gold | Points: 50

Up
0
Down

Resolved

using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;

protected void Page_Load(object sender, EventArgs e)
{
Bitmap bitmapimg = new Bitmap(120, 120, PixelFormat.Format32bppArgb);
Graphics grph = Graphics.FromImage(bitmapimg);
SolidBrush br = new SolidBrush(Color.Green);
grph.FillEllipse(br, 4, 4, 110, 110);
Response.ContentType = "image/gif";
bitmapimg.Save(Response.OutputStream, ImageFormat.Gif);
bitmapimg.Dispose();
}


S.Preeti, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: S.Preeti on: 10/31/2012 [Member] Starter | Points: 25

Up
0
Down
Thanks :)

S.Preeti, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response