我如何从StorageItemThumbnail对象实际使用此缓冲区? [英] how do i actually USE this buffer from StorageItemThumbnail object ?
本文介绍了我如何从StorageItemThumbnail对象实际使用此缓冲区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
代码是
Windows.Storage.StorageFile.getFileFromPathAsync('C:\\Users\\Raymond Goldman\\Pictures\\Korean Artist\\photo.jpg').done(function (file) {
file.getThumbnailAsync(Windows.Storage.FileProperties.ThumbnailMode.picturesView, 100, Windows.Storage.FileProperties.ThumbnailOptions.resizeThumbnail).then(function (file_thumbnail) {
var file_thumbnail = file_thumbnail;
//LOL, what is the next step ?
});
});
如何使用此缩略图对象,其中大多数方法返回缓冲区,如何将其实际显示到视频标记中,或者更好的是,只需从该缩略图中取出一张图片进入html?
How do I use this thumbnail object, most of it's methods returns buffers, how do I actually shows it into video tag, or better yet, just take one picture from that thumbnail into the html ?
推荐答案
查看文件和文件夹样本的检索缩略图< a href ="http://code.msdn.microsoft.com/windowsapps/File-th umbnails-sample-17575959">
http://code.msdn.microsoft.com/windowsapps/File-thumbnails-sample-17575959
这篇关于我如何从StorageItemThumbnail对象实际使用此缓冲区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文