video data serialization/desetialization
To create a WriteableBitmap from a stream I can use the
PictureDecoder.DecodeJpeg helper method like shown below.
protected override BitmapSource CreateBitmapSource()
{
BitmapSource source = null;
if (ImageBytes != null)
{
using (var stream = new MemoryStream(ImageBytes))
{
source = PictureDecoder.DecodeJpeg(stream);
}
}
return source;
}
my question is how can i create WriteableBitmap from a video data stream.
for windows phone 8 app in C#
No comments:
Post a Comment