- 博客(13)
- 资源 (1)
- 收藏
- 关注
原创 WPF 动态图片切换
利用WPF 状态切换效果可以在WinForm 中做出如网页Flash 效果主要代码如下:WPF 部份using System;using Microsoft.Expression.Interactivity.Core;using Microsoft.Expre
2011-08-08 17:48:17
11831
1
原创 利用Mplayer 实现视频连拍
主要利用Mplayer 作视频截图,先前试过ffmpeg 但是截一张指定较长时间的视频很慢如:截取20:00:00等半天才截出图片来,所以换了mplayer 来做,很快就截取了视频图片因此采用了Mplayer 来做,先上张效果图
2011-08-08 17:15:51
2308
原创 格式化查询字符串
<br /> <br /> <br /> static string sqlFormat;<br /> static SQLiteHelper helper = new SQLiteHelper();<br /> static string tName;<br /> /// <summary><br /> /// 批处理。。sql<br /> /// </summary><br /> static List<string> sqls = new L
2010-09-13 15:55:00
930
原创 Image 颜色分量 、获取略缩图
<br />ColorMatrix<br />灰色,图片去色<br />r = 像素点的红色分量0.299 + 像素点的绿色分量0.587 + 像素点的蓝色分量0.114<br /> ColorMatrix _matrix = new ColorMatrix(new float[][]{<br /> new float[]{0.299f,0.299f,0.299f,0.299f,0.299f},<br /> new float[]{0.587f,0
2010-09-13 15:45:00
1015
转载 C#启动一个外部程序
C#启动一个外部程序(3)-CreateProcess<br />今天还是继续说说C#调用系统Api启动外部程序的方法,今天要说的是CreateProcess这个Api函数,相比前两篇文章(一、二)中所说的Api,CreateProcess参数要更复杂一些,但使用起来,要更灵活。<br />1.using System.Runtime.InteropServices;<br />2. CreateProcess中用到了几个结构体类型,先声明他们: [System.Runtime.Inter
2010-08-17 10:13:00
2253
转载 C# Windows Mobile 利用Com 透明图片绘制
//扩展Graphics public static class GraphicsExtend { public enum PixelFormatID : int { PixelFormatIndexed = 0x00010000, // Indexes into a palette PixelFormatGDI =
2010-04-28 10:47:00
1296
原创 JavaScript 缓动算法示例
缓动算法示例 #DivExpress{ width:400px; height:50px; border:1px solid green;}#Demo{position:relative;border:1px solid red;width:100px;height:50px;} 请选择缓动效果...无缓动效果二次方的缓动三次方的缓动四
2010-04-28 10:43:00
1752
原创 JavaScript 排列组合算法 1、2、3、4、5、6、7 任意的排列组合不重复的 个数
前部分排列 后部分排列 JavaScript 代码如下 排列组合 function jaiChengRange(number) { //单例 this.parmaArray=[]; //临时存入 this.testParma=[]; //存入所有情况 this.allIte
2010-04-28 10:28:00
12947
3
原创 JavaScript 实现画图板效果
New Document .d { border:1px solid green; width:2px; height:3px; position:absolute; display:none; } var isdown=false; var isup=true; function move() { if(
2010-04-28 10:23:00
1605
原创 JavaScript 树
//结点参数对象 //主键 外键 名称 地址 目标框架 function NodeParameter(id,pid,name,url,target) { this.id=id; this.pid=pid; this.name=name; this.url=url; this.target=target; this.index=0; this.isOpen=fal
2010-04-28 10:14:00
773
原创 Windows 下 API 详解
API 函数 //C#操作API用到的命名空间using System.Runtime.InteropServices; C#申明方法 EntryPoint="ShowWindow" 入口点在ExactSpelling为true 下找不到时才指定入口点即为API函名============================================================
2010-04-28 10:07:00
1217
原创 Widows 下的 Hook
public enum HookType : int//钩子类型 { WH_MSGFILTER = -1, WH_JOURNALRECORD = 0, WH_JOURNALPLAYBACK = 1, WH_KEYBOARD = 2, WH_GETMESSAGE = 3
2010-04-28 09:51:00
841
原创 C# DirectShow 操作视频播放功能
/// /// DirectShow 视频播放 该方法以引用 DirectShowLib-2005.dll为基础/// /// 视频文件路径 private void MediaRender(string fileName){ //全局时间轴 IAMTimeline m_pTimeline = (IAMTimeline)new AMTimeline(); #reg
2010-04-08 10:22:00
2848
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人