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

Learn from yesterday, Live for today, For a better tomorrow.
 ————wjshan0808

博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页
2015年1月22日
Ini文件操作函数
摘要: /// /// Copies a string into the specified section of an initialization file. /// /// The name of the section to which the str... 阅读全文
posted @ 2015-01-22 13:08 wjshan0808 阅读(250) 评论(0) 推荐(0)
移动文件
摘要: /// /// Moves an existing file or directory, including its children, with various move options. /// The MoveFileWithProgress function i... 阅读全文
posted @ 2015-01-22 12:56 wjshan0808 阅读(253) 评论(0) 推荐(0)
文件路径遍历
摘要: private void DeeperDirectory(string path) { FileSystemInfo[] fsi = new DirectoryInfo(path).GetFileSystemInfos(); foreach ... 阅读全文
posted @ 2015-01-22 12:31 wjshan0808 阅读(155) 评论(0) 推荐(0)
边缘探测
摘要: Color C1, C2, C3, C4; int r1, r2, r3, r4, g1, g2, g3, g4, b1, b2, b3, b4, rx, ry, gx, gy, bx,... 阅读全文
posted @ 2015-01-22 11:23 wjshan0808 阅读(273) 评论(0) 推荐(0)
马赛克效果
摘要: Color C; int r, g, b, rV, gV, bV, rT, gT, bT, y, z; Bitmap bmp = new Bitmap(pictureBox1.Image);//创建Bitmap对象 Bitmap t... 阅读全文
posted @ 2015-01-22 10:54 wjshan0808 阅读(203) 评论(0) 推荐(0)
柔化效果
摘要: Bitmap bmp = new Bitmap(pictureBox1.Image); int Height = bmp.Height; int Width = bmp.Width; Bitmap tmp = (Bitmap)bmp... 阅读全文
posted @ 2015-01-22 10:44 wjshan0808 阅读(161) 评论(0) 推荐(0)
锐化效果
摘要: Bitmap bmp = new Bitmap(pictureBox1.Image); //创建Bitmap对象 Bitmap tmp = (Bitmap)bmp.Clone();//创建Bitmap对象 int height = tmp.Height;... 阅读全文
posted @ 2015-01-22 10:33 wjshan0808 阅读(188) 评论(0) 推荐(0)
扭曲效果
摘要: ///283,191 Bitmap bmp = new Bitmap(pictureBox1.Image);//创建Bitmap对象 using (Graphics g = pictureBox2.CreateGraphics()) ... 阅读全文
posted @ 2015-01-22 10:21 wjshan0808 阅读(123) 评论(0) 推荐(0)
黑白效果
摘要: Bitmap bmp = new Bitmap(pictureBox1.Image); int height = bmp.Height; int width = bmp.Width; Bitmap tmp = new Bitma... 阅读全文
posted @ 2015-01-22 10:03 wjshan0808 阅读(125) 评论(0) 推荐(0)
光照效果
摘要: private const float BRIGHTNESS = 220.0F; Graphics g = this.pictureBox2.CreateGraphics(); g.Clear(Color.White); Bitmap bmp = new ... 阅读全文
posted @ 2015-01-22 09:55 wjshan0808 阅读(149) 评论(0) 推荐(0)
积木效果
摘要: int avg, iPixel; Color C, newC; Graphics g = this.CreateGraphics(); Bitmap bmp = new Bitmap(pictureBox1.Image); ... 阅读全文
posted @ 2015-01-22 09:29 wjshan0808 阅读(189) 评论(0) 推荐(0)
百叶窗效果
摘要: Bitmap bmp = new Bitmap(pictureBox1.Image); ///等分 int divide = 11; int divideLine = divide + 1; //百叶窗宽度 ... 阅读全文
posted @ 2015-01-22 09:21 wjshan0808 阅读(214) 评论(0) 推荐(0)
2015年1月21日
图片浮雕
摘要: Bitmap bmp = new Bitmap(pictureBox1.Image);//创建Bitmap对象 for (int i = 0; i < bmp.Width - 1; i++) { for (int j = 0;... 阅读全文
posted @ 2015-01-21 17:40 wjshan0808 阅读(203) 评论(0) 推荐(0)
向区域中追加文本
摘要: Graphics g;//画板 GraphicsPath path;//路径 private void button1_Click(object sender, EventArgs e) { //从路径中构造区域 ... 阅读全文
posted @ 2015-01-21 17:36 wjshan0808 阅读(165) 评论(0) 推荐(0)
伽马曲线调整图片
摘要: private void Form1_Load(object sender, EventArgs e) { img = pictureBox1.Image = Image.FromFile("8.jpg"); } Ima... 阅读全文
posted @ 2015-01-21 17:17 wjshan0808 阅读(517) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 20 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3