Organizational Research By

Surprising Reserch Topic

Image Size in Windows 8 File Picker


How to know the size of the picked image , or how to put a limit for the picked image , like Maximum size for Image is 1 MB , Here is my code

   var openPicker = new Windows.Storage.Pickers.FileOpenPicker();
        openPicker.ViewMode = Windows.Storage.Pickers.PickerViewMode.Thumbnail;
        openPicker.SuggestedStartLocation = Windows.Storage.Pickers.PickerLocationId.DocumentsLibrary;
        openPicker.FileTypeFilter.Add(".png");
        openPicker.FileTypeFilter.Add(".Jpeg");
        openPicker.FileTypeFilter.Add(".Jpg");

        StorageFile file = await openPicker.PickSingleFileAsync();
asked Sep 13, 2013 in Microsoft Window 8 by rajesh
edited Sep 12, 2013
0 votes
17 views



Related Hot Questions



Government Jobs Opening


...