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

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

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

代码说明:

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

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

发表评论

0 个回复

  • CRC16
    C#编写的CRC16的校验程序,简单的计算方式希望对需要的人有所帮助(C# CRC16 written calibration procedures, simple method to need help)
    2012-02-14 10:53:28下载
    积分:1
  • c_mail
    c写的邮件例子简单方便适合初学者学习方便使用(c write the message is simple and convenient example of user-friendly for beginners to learn)
    2007-10-29 08:08:15下载
    积分:1
  • DominionManager
    CDominionManager.cpp Fixes dominion wars in l2 gracia final
    2020-06-18 08:20:02下载
    积分:1
  • UA-.NETStandard
    说明:  Official OPC UA .Net Standard Stack and Samples from the OPC Foundation
    2020-06-21 02:40:01下载
    积分:1
  • SPWM
    51单片机产生SPWM波程序,用于逆变电源的制作。(SPWM wave generated 51 single procedure for the production of power inverters.)
    2011-09-24 10:34:51下载
    积分:1
  • 委托
    C#的委托实现,,以一个建议的例子进行说明,具体代码以及注释均有。 委托实现了对方法的封装引用,适于初学者对于委托的理解(The implementation of C# is illustrated by a suggested example, with specific code and annotations. The delegate realizes the encapsulation and reference of the method, and is suitable for beginners to understand the entrustment.)
    2018-04-30 12:42:12下载
    积分:1
  • TreeLayout
    说明:  树形流程源码,添加节点,修改节点并可实现自由连接。(Tree process source code, add nodes, modify nodes.)
    2020-06-23 12:20:02下载
    积分:1
  • ccs811
    说明:  CO2传感器手册使用说明书 CCS811(CO2 sensor manual manual CCS811)
    2019-04-21 21:18:15下载
    积分:1
  • MFCODBCaccess
    VC++ 使用MFC ODBC访问数据库,请注意:在VC环境下运行程序前,必须注册ODBC数据源,数据库文件为bookinfo.mdb,数据源名称为bookinfo,直接运行可执行文件也需要将数据库文件与可执行文件放在同一路径下。(VC++ using MFC ODBC to access the database, please note: In the VC environment before running the program, you must register ODBC data source, the database file is bookinfo.mdb, data source name is bookinfo, also need to run an executable file with an executable database files files in the same path.)
    2014-02-21 16:46:07下载
    积分:1
  • uc1698u_240_160
    基于uc1698u液晶240_160完整驱动(the full driver for uc1698u,240_160)
    2021-03-25 02:49:14下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载