locked
How do i use RetrievePropertiesAsync() and SavePropertiesAsync() for StorageItemContentProperties object ? and how do i get this thumbnail object ?

    Question

  • How do i use RetrievePropertiesAsync() and SavePropertiesAsync() for StorageItemContentProperties object ? and how do i get this thumbnail object ?

    var requestedSize = 190;
    var thumbnailMode = Windows.Storage.FileProperties.ThumbnailMode.picturesView;
    var thumbnailOptions = Windows.Storage.FileProperties.ThumbnailOptions.useCurrentScale;
    file.getThumbnailAsync(thumbnailMode, requestedSize, thumbnailOptions).then(function (datas) {
                            var datas = datas;
    // now what ?
                        });

     var openPicker = new Windows.Storage.Pickers.FileOpenPicker();
    openPicker.viewMode = Windows.Storage.Pickers.PickerViewMode.thumbnail;
    openPicker.suggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.picturesLibrary;
    openPicker.fileTypeFilter.replaceAll([".png", ".jpg", ".jpeg"]);
    openPicker.pickSingleFileAsync().then(function (file) {
    // how to use RetrievePropertiesAsync()
    // and how to use SavePropertiesAsync() ??
    // usually I do this (below) when I need those metadatas
                        file.getBasicPropertiesAsync().then(function (datas) {
                            var datas = datas;
                        });
    file.properties.getDocumentPropertiesAsync().then(function (datas) {
                            var datas = datas;
                        });
                        file.properties.getImagePropertiesAsync().then(function (datas) {
                            var datas = datas;
                        });
                        file.properties.getMusicPropertiesAsync().then(function (datas) {
                            var datas = datas;
                        });
                        file.properties.getVideoPropertiesAsync().then(function (datas) {
                            var datas = datas;
                        });

    Tuesday, August 28, 2012 12:07 AM

Answers

All replies