0
我正嘗試在Windows Phone 8中創建一個視頻採集應用程序商店視頻文件和縮略圖。我從以下鏈接獲得了一些提示: How to get the thumbnail of a recorded video - windows phone 8?。 但結果很煩人。我認爲這個功能存在一些問題。在Windows Phone 8中使用「縮略圖」圖像記錄視頻文件8
void captureSource_CaptureImageCompleted(object sender, CaptureImageCompletedEventArgs e)
{
using (IsolatedStorageFile isoStore = IsolatedStorageFile.GetUserStoreForApplication())
{
WriteableBitmap wb = e.Result;
string fileName = "CameraMovie.jpg";
if (isoStore.FileExists(fileName))
isoStore.DeleteFile(fileName);
IsolatedStorageFileStream file = isoStore.CreateFile(fileName);
Extensions.SaveJpeg(wb, file, wb.PixelWidth, wb.PixelHeight, 0, 85);
file.Close();
captureSource.Stop();
fileSink.CaptureSource = null;
fileSink.IsolatedStorageFileName = null;
}
}
e.Result具有it.while我其綁定到的圖像控制某些無效數據它顯示了一些惱人圖像。 任何人都請幫助我。
請在您的回答中添加說明 – SSP