Foxtable(狐表)用户栏目专家坐堂 → [求助]图片旋转问题


  共有2463人关注过本帖树形打印复制链接

主题:[求助]图片旋转问题

帅哥哟,离线,有人找我吗?
pcxjxjhkw
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:七尾狐 帖子:1791 积分:12764 威望:0 精华:1 注册:2013/7/18 15:51:00
[求助]图片旋转问题  发帖心情 Post By:2014/11/20 20:17:00 [只看该作者]

图片管理器中,用下面的代码能旋转,但没实时显示出来?

Dim zp As WinForm.PictureViewer = e.Form.Controls("PictureViewer1")
Dim str As String = zp.SelectedItem
Dim bmp As New bitmap(str)
bmp.RotateFlip(RotateFlipType.Rotate90FlipNone)
bmp.save(str)


如何刷新,实时显示旋转后的图片?

[此贴子已经被作者于2014-11-20 20:17:30编辑过]

 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/11/20 20:31:00 [只看该作者]

Dim zp As WinForm.PictureViewer = e.Form.Controls("PictureViewer1")
Dim str As String = zp.SelectedItem
Dim bmp As New bitmap(str)
bmp.RotateFlip(RotateFlipType.Rotate90FlipNone)
bmp.save(str)

Dim obj As object = e.Form.Controls("PictureViewer1").basecontrol.Controls(0)
Dim pic As Object = obj.panel1.controls("PictureSplitContainer").Panel1.controls("panel2").controls("C1PictureBox1")
pic.Image = bmp


 回到顶部
帅哥哟,离线,有人找我吗?
pcxjxjhkw
  3楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:七尾狐 帖子:1791 积分:12764 威望:0 精华:1 注册:2013/7/18 15:51:00
  发帖心情 Post By:2014/11/20 20:35:00 [只看该作者]

甜老师,你太有才了,谢谢!

 回到顶部