Click here to Skip to main content
15,891,951 members

Comments by d_lucifer (Top 20 by date)

d_lucifer 4-Apr-13 8:24am View    
yes i know that. but there i'm getting an exception, it says "Parameter is not valid" and that's why i posted it here to get a solution from someone. so if you know the answer for that issue please let me know..
d_lucifer 4-Apr-13 0:32am View    
exactly that's what i want to achieve. i want to get that snapshot as a bitmap. since silverlight doesn't support for System.Drawing.Imaging class, i have to use WriteableBitmap from System.Windows.Media.Imaging class. then i convert that WriteableBitmap to a byte array and send it to the web service. that web service will do the rest.

so can you just refer the above code and tell me what's wrong with it?

or if you know any other way to convert WriteableBitmap to a byte array properly and convert it back to Bitmap format, then please tell me how to do it..
d_lucifer 3-Apr-13 16:06pm View    
actually i don't know much about WPF and ASP.Net. anyway what i want to do is i need to take a snapshot of a person using the webcam and i want to save that image as jpg or png automatically to a local folder. that local folder should be in my asp.net website project because i'm going to compare that image with another image using EMGU CV. so that i can easily assign that jpg or png to a bitmap and work with my other functions. do you have any idea regarding my requirement?
d_lucifer 3-Apr-13 2:08am View    
sorry i didn't mean that. i just wanted to give an idea. that's why i wrote it that way, silverlight writablebitmap and asp.net bitmap. yeah i know WriteableBitmap inherits from System.Windows.Media.ImageSource and Bitmap inherits from System.Drawing.Image. but what do you mean? can i use WritableBitmap in ASP.Net ? or Bitmap in Silverlight? how??
d_lucifer 2-Apr-13 0:40am View    
This is exactly what i wanted. thank you so much friend.. :)