Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
this is my function code,..

i;ve tried for conversion from image source to stream conversion..
but nothing get ...

please help me out anyone, which method to use for this..>?

void source_CaptureImageCompleted(object sender, CaptureImageCompletedEventArgs e)
       {
          Stream profileImageStream = null;
          ImageBrush ib = new ImageBrush();

          ib.ImageSource = e.Result;
          ColorImage.Source = ib.ImageSource;

          Image img = new Image();
          img = ColorImage;


       }
Posted

1 solution

Try this

void source_CaptureImageCompleted(object sender, CaptureImageCompletedEventArgs e)
{
MemoryStream stream = new MemoryStream(e.Result);
BitmapImage b = new BitmapImage();
b.SetSource(stream);
imgImage.Source = b;
}
 
Share this answer
 
Comments
SOHAM_GANDHI 18-Aug-14 1:08am    
i'm asking imafe source to stream?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900