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

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

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

代码说明:

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

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

发表评论

0 个回复

  • Cplusplus
    C++程序设计编程,贝尔实验室著,电子版PDF(C++ program design programming, with Bell Labs, the electronic version in PDF)
    2013-10-28 14:01:15下载
    积分:1
  • ComTest-VS2010串口读写代码
    适用于VS2010以后的版本对串口进行读取数据和写入数据到串口。(Applicable to VS2010 and later versions to read data and write data to the serial port.)
    2020-06-19 04:00:01下载
    积分:1
  • texture
    3D_grid和D3D_2D例子中,使用到的贴图文件包。(3D_grid and D3D_2D example, use the map to the package.)
    2011-08-07 14:53:54下载
    积分:1
  • RemoveDriveByLetter_demo
    安全移除usb设备功能,可禁止某类usb设备的使用,实行系统安全控制Removing a USB drive using the Windows tray icon is easy - especially if you single left-click it... But sometimes it s useful to it from your program(safety equipment functions, prohibit certain types of equipment used usb, Safety control system implemented Removing a USB drive using the Windows tray icon is easy- especially if you left single- click it ... But sometimes it's useful to it from your program)
    2007-05-16 16:47:00下载
    积分:1
  • src
    端口扫描工具 C++语言编写 代码简洁有效快捷!(Port scanning tool C++ language code is simple and effective and efficient!)
    2014-04-13 16:16:39下载
    积分:1
  • OLED
    STC点亮OLED OLED菜单模式 SSD1306OLED显示屏(Lighten OLED by STC)
    2013-12-06 10:19:15下载
    积分:1
  • CSharpstudent-information
    基于C#学生信息管理系统毕业设计作为必不可少的计算机毕业学生作业.基于C#学生信息管理系统论文用以描述整个设计的需求分析,E-R图,业务流程等范文 基于C#学生信息管理系统源程序则是具体在某种语言上的源代码设计与实现.另还应具备开题报告,答辩稿,外文翻译,中期报告等(Based on C# graduate student information management system designed as computer graduate student work is essential. C#-based student information management system designed for paper to describe the needs analysis, ER diagrams, business process, etc. Fan C#-based student information management system source code is the specific language in the source code of a design and implementation. should have another opening report, draft defense, foreign language translation, interim reports, etc.)
    2011-11-29 22:24:24下载
    积分:1
  • wpf照片墙(带有3d效果)
    说明:  WPF照片浏览的源码,很炫酷的动态效果,可以参考做自己的照片墙(With a variety of styles of controls, powerful open source code, you can refer to their own beautiful interface WPF photo browsing source code, very dazzling dynamic effects, you can refer to do your own photo wall)
    2020-06-24 04:20:01下载
    积分:1
  • onvif
    onrif协议头文件,已经从WSDL文件转为相关源代码,可在window、linux上使用(The onrif protocol header file has been converted from the WSDL file to the relevant source code. It can be used on window and Linux.)
    2018-08-14 16:34:19下载
    积分:1
  • IESS-601E
    iEEE 601 标准 信道编码相关 卫星通信(the standard channel iEEE 601 encoding related satellite communications)
    2021-03-26 10:39:13下载
    积分:1
  • 696518资源总数
  • 105562会员总数
  • 1今日下载