work hard work smart

专注于Java后端开发。 不断总结,举一反三。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

11 2012 档案

摘要:Metro style app一.图片Scale ,Crop操作 public class PhotoEdit { public async static Task<WriteableBitmap> ScaleAndCorpPhoto(IStorageFile file) { if (file == null) return null; // create a stream from the file and decode the image var fileStream = await ... 阅读全文

posted @ 2012-11-28 15:34 work hard work smart 阅读(1057) 评论(1) 推荐(0)

摘要:这个例子,是一个完整的Metro解压缩ZIP文件的例子,首先选择要解压缩的Zip文件,然后自选保存目录。 private async void UnZipFile(object sender, RoutedEventArgs e) { FileOpenPicker fop = new FileOpenPicker(); fop.FileTypeFilter.Add(".zip"); fop.SuggestedStartLocation = PickerLocationId.Desktop; ... 阅读全文

posted @ 2012-11-21 17:11 work hard work smart 阅读(497) 评论(0) 推荐(0)