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

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

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

代码说明:

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

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

发表评论

0 个回复

  • c6701
    航空板上TMS320C6701 DSP配置EMIF,读写SDRAM FLASH 和FPGA等外围电路的源码(Aviation board TMS320C6701 DSP configuration EMIF, literacy SDRAM FLASH and FPGA source code and other peripheral circuits)
    2021-04-17 15:08:53下载
    积分:1
  • computerspecialpersonVisualc
    计算机专业人员vc开发设计很经典的vc专业书籍(Computer Professionals for Development and design of the classic books vc)
    2007-01-28 23:18:18下载
    积分:1
  • getThumbs
    从数据库中取出图片字段,成批量生成缩略图,要求在存储服务器上执行。(Remove the image the field, to generate a lot of thumbnails, requiring the implementation of the storage server.)
    2017-05-02 17:54:44下载
    积分:1
  • yp270
    Simulation of doubly fed induction generator system, PLS PLS toolbox, Noisy pulse correlation detection signal.
    2017-11-14 13:28:13下载
    积分:1
  • UDP套接字
    可通过U D P套接字及接口函数发送/接收数据 1. 在Linux系统下,采用C语言编写一个U D P服务器程序,客户向服务器发送字符串后,服务器能把该字符串返回给客户程序。 2. 在Linux系统下,采用C语言编写一个U D P客户程序,可向服务器发送字符串,并把服务器返回的字符串显示出来。(Data can be sent / received through U D P sockets and interface functions. 1. In Linux system, a U D P server program is written in C language. After the client sends the string to the server, the server can return the string to the client program. two. Under the Linux system, a U D P client program is written in C language,which can send a string to the server and display the string returned by the server.)
    2020-06-24 19:40:01下载
    积分:1
  • VC6LineNumberAddin
    VC++行号显示插件,里面有相应的txt说明文件(VC6 LineNumber Addin dll files.)
    2012-03-06 12:06:33下载
    积分:1
  • ADC_FFT
    针对TMS320F28335的DSP编程,完成信号采集于频谱分析工作(DSP programming for TMS320F28335 to complete the signal acquisition to spectrum analysist)
    2014-11-19 10:35:55下载
    积分:1
  • GetMACAddress
    应用程序向导使用“TODO:” 来指示 应添加或自定义的源代码部分。 如果应用程序在共享 DLL 中使用 MFC,且应用程序使用的语言不是 操作系统的当前语言,则需要从 Microsoft Visual C++ 光盘上 WinSystem 目录下将相应的本地化资源 MFC70XXX.DLL 复制到计算机的 system 或 system32 目录下, 并将其重命名为 MFCLOC.DLL。 (“XXX”代表 语言缩写。 例如,MFC70DEU.DLL 包含翻译成 德语的资源。) 如果不这样做,应用程序的某些 UI 元素 将保留为操作系统的语言。">
    2008-03-20 00:39:18下载
    积分:1
  • direcuory
    磁盘文件系统的模拟,能实现文件的添加,删除,实现多级目录(Disk file system simulation, can realize the file to add, delete, multi-stage directory)
    2017-04-12 00:12:20下载
    积分:1
  • VC6m-MFC-ODBC
    在VC6中用MFC向导ACCESS2000数据可以测与数据库的连接(used in VC6 MFC Wizard ACCESS2000 data can be measured and database connectivity)
    2020-10-30 23:00:01下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载