登录
首页 » C# » wpf下实现图片的放大缩小和平移 - CSDN博客

wpf下实现图片的放大缩小和平移 - CSDN博客

于 2018-04-04 发布 文件大小:867KB
0 117
下载积分: 1 下载次数: 3

代码说明:

  要求及背景 工作需要,要在一个Form里面实现一个实时预览的picturebox图像,由于picturebox可能会遮挡到其后面的画面,所以要求picturebox可以由用户自行拖拽,类似于悬浮框。 原理说明 在网上兜了几圈之后,决定用三段代码实现。首先要注册鼠标的三个事件:移动、鼠标左键按下、鼠标左键抬起,当然,都是在picturebox上的动作。注册三个事件后,即可以在三个对应的事件函数里面实现拖拽。(Amplification, reduction and translation of images under WPF)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Visual-Csharp-NET-web-programming
    Visual.C#.NET.网络核心编程(Visual.C#. NET. The core of the network programming)
    2012-08-10 16:12:42下载
    积分:1
  • manager
    小商品管理系统,实现商品的分录,查询,总价统计(Commodity management system, product entry, query, total statistics)
    2013-09-08 13:53:30下载
    积分:1
  • libuv-v1.9.1
    说明:  高效服务器编程模型,达到理论100W并发服务(Efficient Server Programming Model)
    2020-06-22 09:20:02下载
    积分:1
  • IrisSkin4
    说明:  C美化界面,用于帮助需要的人群!辛苦找到,分享给大家,以后大家可以更快更便捷的开发(C beautify the interface to help people in need! Find it hard and share it with you. You can develop it faster and more conveniently in the future.)
    2020-06-23 19:40:01下载
    积分:1
  • aurora9x18-v2.3
    918极光固件,hex文件,索尼遥控器代码(918 Aurora firmware, hex files, Sony remote control code)
    2013-06-05 21:39:30下载
    积分:1
  • shizhong
    用C#实现的小时钟,用的第三方控件,为方便学习特此献上,希望对大家有帮助(C# implementation of a small clock with the third-party controls, is hereby presented to facilitate learning, and I hope for all of us to help)
    2013-01-19 16:00:49下载
    积分:1
  • RS232
    串口通信程序,MSComm方式实现,有参考价值(Serial communication program, MSComm ways, have reference value)
    2013-11-28 08:45:23下载
    积分:1
  • EmbeddedFATFileSystemsource
    嵌入式FAT文件系统源码,对于了解FAT文件系统原理,及自己编写文件系统具有一定的参考价值。(Embedded FAT file system source code, for understanding the principle of FAT file system, and write your own file system has some value.)
    2010-07-27 20:08:17下载
    积分:1
  • MyPlayer
    不错的播放器,功能完全,强大!支持视频和MP3文件 运用了,很多winForm中很强的控件: OpenFileDialog:用于打开文件对话框的 Filter 属性可以控制格式 ContextMenuStrip:鼠标右键菜单 Items 添加右键菜单 MenuStrip:菜单栏 AxWindowsMediaPlayer:媒体播放器 引用与com组件 ListBox:列表 FolderBrowserDialog:用于打开文件夹对话框的 (A good player, features a complete, powerful! To support the use of video and MP3 files, and many winForm in a very strong control: OpenFileDialog: Open File dialog box for the Filter property can control the format of ContextMenuStrip: Right Menu Items to add right-click menu MenuStrip: menu bar AxWindowsMediaPlayer: Media Player reference and com components ListBox: List FolderBrowserDialog: Folder dialog box to open the file)
    2010-03-15 19:39:03下载
    积分:1
  • howtoprograminc
    C++大学教程第三版里面的部分习题答案,自己写的,可以参考(My homework of some problems in C++ howtoprogramme, you can reference it)
    2012-03-12 23:50:09下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载