bitmap image in asp.net c# script

Posted by Jahi under Regular Expressions on 2/16/2011 | Points: 10 | Views : 3295 | Status : [Member] | Replies : 4
how can i create bitmap image using asp.net c# script?




Responses

Posted by: Prabhakar on: 2/16/2011 [Member] [MVP] Starter | Points: 25

Up
0
Down
Hi jahi
i think try this .. it;s help full for you
Bitmap newBmp = ConvertToBitmap("C:\img\one.jpg");

newBmp.Save(context.Response.OutputStream, ImageFormat.Jpeg);

Best Regard's
Prabhakar

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

Posted by: Jahi on: 2/16/2011 [Member] Starter | Points: 25

Up
0
Down
I don't get convertToBitmap .


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

Posted by: Madhu.b.rokkam on: 2/16/2011 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Try using this

BitMap bitmap = (BitMap)Image.FromFile("c:\\test.jpg");
bitmap.save("c:\\test.bmp");



Thanks and Regards
Madhu

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

Posted by: Karthikanbarasan on: 2/16/2011 [Member] [Moderator] [Microsoft_MVP] [MVP] Silver | Points: 25

Up
0
Down
Hi,

Check this link

http://en.csharp-online.net/Working_with_Images%E2%80%94Using_the_Bitmap_Class

Thanks
Karthik
www.f5Debug.net

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

Login to post response