Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How can I display a runtime image in internet explorer? Please Help me....

Reply
Thread Tools

How can I display a runtime image in internet explorer? Please Help me....

 
 
Sima
Guest
Posts: n/a
 
      06-19-2006
Hi, All
I want to develop a runtime image with "Bitmap" object in Asp.Net and then
display it in my browser.
I do it with this code :
-----------------------------
Bitmap bm=new Bitmap(100,100);

Graphics g;

g=Graphics.FromImage(bm);

g.Clear(Color.White);

g.DrawLine(Pens.Red,0,0,50,50);

MemoryStream memo;

memo = new MemoryStream();

bm.Save( memo, System.Drawing.Imaging.ImageFormat.Bmp );

memo.Close();


Response.BinaryWrite( memo.ToArray() );

------------------------------------

After that I run this code , the runtime bitmap is showing in Paint
application. and not displayed it in my browser.
Please help me.
Best Regards,
Sima


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Getting A Greyscale Image To Display In Colour - Please Help! stublair Java 5 12-05-2011 07:05 AM
Unable to Display Image from database at runtime =?Utf-8?B?ZGVuIDIwMDU=?= ASP .Net 3 08-03-2006 12:40 AM
HELP! HELP! PLEASE, PLEASE, PLEASE tpg comcntr Computer Support 11 02-15-2004 06:22 PM
please help... ...me learn C++ please please please :) KK C++ 2 10-14-2003 02:08 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57