• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

.net wpf

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2013年4月8日

C# 剪切图和缩小

摘要: public void CutToF(Stream stream) { Image initImage = Image.FromStream(stream, true); if (initImage.Width <= 480 && initImage.Height <= 480) { initImage.Save("D://test.jpg", ImageFormat.Jpeg); } ... 阅读全文

posted @ 2013-04-08 15:16 王留争 阅读(345) 评论(0) 推荐(0)

断点续传,下载。

摘要: private long tempStartPostion = 0; //开始位置 FileStream fs; if (File.Exists("D://test.zip")) { fs = System.IO.File.OpenWrite("D://test.zip"); tempStartPostion = fs.Length;// 文件流现在的大小 fs.Seek(tempStartPostion, Syst... 阅读全文

posted @ 2013-04-08 15:09 王留争 阅读(722) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3