-
c# winform 自定义控件类LayeredSkin.dll
自定义开关按钮,滚动相册,进度条,窗体控件/******************************************************************** * * * * 使本项目源码或本项目生成的DLL前请仔细阅读以下协议内容,如果你同意以下协议才能使用本项目所有的功能, * * 否则如果你违反了以下协议,有可能陷入法律纠纷和赔偿,作者保留追究法律责任的权利。 * * * * 1、你可以在开发的软件产品中使用和修改本项目的源码和DLL,但是请保留所有相关的版权信息。 * * 2、不能将本项目源码与作者的其他项目整合作为一个单独的软件售卖给他人使用。 * * 3、不能传播本项目的源码和DLL,包括上传到网上、拷贝给他人等方式。 * * 4、以上协议暂时定制,由于还不完善,作者保留以后修改协议的权利。 * * * * Copyright (C) 2013-2014 LayeredSkin Corporation All rights reserved. * * 作者: 小红帽 QQ:761716178 * * 请保留以上版权信息,否则作者将保留追究法律责任。 * * * * 创建时间:2014-04-13 * * 说明:QQ.cs * *********************************************************************/using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using LayeredSkin.Forms;namespace test{ public partial class QQ : LayeredForm { public QQ() { InitializeComponent(); } private void layeredButton1_Click(object sender, EventArgs e) { this.WindowState = FormWindowState.Minimized; } private void QQ_Load(object sender, EventArgs e) { this.Animation.Effect = new LayeredSkin.Animations.GradualCurtainEffect() { ChangeHeight = 25 }; yezi = new Bitmap(90, 80);//先把叶子画在稍微大一点的画布上,这样叶子旋转的时候才不会被裁掉一部分 using (Graphics g = Graphics.FromImage(yezi)) { g.DrawImage(Image.FromFile("Images\yezi3.png"), 10, 0); } timer1.Start(); } private void layeredButton2_Click(object sender, EventArgs e) { this.Animation.Effect = new LayeredSkin.Animations.GradualCurtainEffect(); this.Animation.Asc = true; this.Close(); } private void FormMoveMouseDown(object sender, MouseEventArgs e) { LayeredSkin.NativeMethods.MouseToMoveControl(this.Handle); } Image Cloud = Image.FromFile("Images\cloud.png"); float cloudX = 0; Image yezi; float angle = 10; bool RotationDirection = true;//是否为顺时针 protected override void OnLayeredPaint(PaintEventArgs e) { Graphics g = e.Graphics; if (cloudX > this.Width - Cloud.Width) {//云的飘动 cloudX = 0; } else { cloudX = 0.5f; } g.DrawImage(Cloud, cloudX, 0);//把云绘制上去 if (angle > 10) {//控制旋转方向 RotationDirection = false; } if (angle < -10) { RotationDirection = true; } if (RotationDirection) { angle = 1; } else { angle -= 1; } using (Image temp = LayeredSkin.ImageEffects.RotateImage(yezi, angle, new Point(25, 3))) { g.DrawImage(temp, 140, 70);//绘制叶子 } base.OnLayeredPaint(e); } private void timer1_Tick(object sender, EventArgs e) { LayeredPaint(); GC.Collect(); } public bool isShow = false; bool isFirst = true; private void layeredButton3_Click(object sender, EventArgs e) { isShow = false; if (isFirst) { this.Animation.Effect = new LayeredSkin.Animations.ThreeDTurn(); this.Animation.AnimationEnd = Animation_AnimationEnd; } isFirst = false; this.Animation.Asc = false; this.Animation.Start(); } //QQConfig config; void Animation_AnimationEnd(object sender, LayeredSkin.Animations.AnimationEventArgs e) { if (!isShow) { this.Hide(); QQConfig config = new QQConfig(this); config.Location = this.Location; config.Show(); } } }}
- 2020-12-11下载
- 积分:1
-
投影仪标定opencv
投影仪标定,摄像机标定,输出三维数据等相关代码,完整的不需要更改
投影仪标定,摄像机标定,输出三维数据等相关代码,完整的不需要更改
- 2022-01-25 22:55:44下载
- 积分:1
-
house2
绘制一个小房子,并演示透视变换。(drawing a small house, and demonstrated perspective transformation.)
- 2004-12-16 17:55:32下载
- 积分:1
-
ffdct
这是DCT的改进算法,可以提高DCT算法的执行速度。(This is the DCT of the improved algorithm can improve the execution speed DCT algorithms.)
- 2009-09-15 12:51:41下载
- 积分:1
-
数据库课程设计
这是一个算法性能评价程序,重点在于算法性能的评价上,实现某一功能可能有很多方法,判断一个算法好坏的标准主要有时间复杂度和空间复杂度,在当今系统资源相对充足的计算机系统中,时间复杂度变成了头等问题。 对于每一个排序算法都应该有两个返回值:比较次数和移动次数,但在C语言中只能有一个函数返回值,故这里采用指针传递地址的方式通过形参的地址从而可以修改实参值,这样一来,在每个排序算法参数列表中,除了含被排序指针对象外,另外加两个整型变量指针,用于传递算法执行过程中的比较次数和移动次数。
- 2022-07-01 21:57:03下载
- 积分:1
-
FlatLeapYearRecognition
基于VC6.0平台编写的一个图形化界面平闰年识别器,界面精美,值得VC初学者参考!(Flat leap year recognition)
- 2013-08-04 15:17:33下载
- 积分:1
-
Thumbnail_demo
应用程序中使用Thumbnail(applications using Thumbnail)
- 2004-10-05 11:22:49下载
- 积分:1
-
cla_iir2p2z
这是利用TI的28377D的CLA实现的数字滤波工程代码。(This is the use of CLA to achieve TI' s 28377D digital filtering project code.)
- 2020-12-12 16:09:15下载
- 积分:1
-
深居浅出AutoCAD二次开发.pdf
AutoCAD 以其通用的格式、完善的图形绘制功能及强大的图形编辑功能在各行业计算机辅助设计方面发挥着举足轻重的作用,对其进行二次开发能以更高精度、速度的进行计算机辅助设计,提高工作效率。如今 AutoCAD 支持的二次开发语言比较丰富,不管在哪种开发语言下对其进行二次开发 AutoCAD 的运行原理、程序设计的方法及开发思路是不变的。综合各种开发语言的性能、功能、开发周期、开发难度以及未来的趋势得出结论:在.NET(C#)环境下对其进行二次开发最为合适。本书力求循序渐进、由浅入深,详细介绍 AutoCAD 二次开发原理与技术。以.NET(C#)环境下二次开发为主线,并介绍.NET(C#)调用 ObjectARX(C )程序的方法,从而实现在 C#环境中构建程序框架(易于实现与修改),必要的时候在 C 环境中实现复杂或目前未托管的程序功能。融入 C 程序让.NET(C#)开发即便捷高效又功能强大。本书在详细的介绍 AutoCAD 基本对象及功能实现的同时结合丰富的开发实例以拓展开发的思路、指导实践开发的过程。本书内容安排如下:第一章“概述” 主要介绍 AutoCAD 软件的功能用途以及开发环境。第二章“AutoCAD 操作应用” 简单介绍软件的应用操作。第三章“程序设计基础” 主要介绍程序设计的基础。第四章“数据库基础” 主要介绍数据库相关的基础知识。第五章 “AutoCAD.NET 开发” 主要介绍 AutoCAD.NET APIs 及 AutoCAD 开发的基本方法与过程。第六章“开发实例” 详细介绍 AutoCAD 的开发过程以及开发思路。本书版权属于数字建筑网(http://www.BimCad.org)站长李冠亿所有。
- 2020-11-29下载
- 积分:1
-
CheckModifyACLPermission
说明: 用net 2010的accesscontrol命名空间操作File,Directory 和 Registery权限(This sample demonstrates how to use the .NET namespace to manipulate permissions related security,
which include of file permission, folder permission and register key permission.)
- 2011-03-18 13:18:58下载
- 积分:1