偶遇需要解析Word为单张图,此做http://git.oschina.net/jiailiuyan/OfficeDecoderusing System;using System.Collections.Generic;using System.Drawing;using System.Drawi....
一、前言运用共享模式能够有效地支持大量细粒度的对象。二、结构图三、实例代码namespace 享元模式{ class Program { static void Main(string[] args) { int extrinsicsta...
在Android代码中,我们有时会使用比我们在AndroidManifest中设置的android:minSdkVersion版本更高的方法,此时编译器会提示警告,解决方法是在方法上加上@SuppressLint("NewApi")或者@TargetApi()。那他们之间有什么区别呢,很简单:@Su...
偶遇需要再 WPF中加载Fnt字体,此做。。。using System;using System.Collections.Generic;using System.Drawing;using System.IO;using System.Linq;using System.Text;using S....
注:本文章转载自网络函数功能:该函数将一个应用程序定义的挂钩处理过程安装到挂钩链中去,您可以通过安装挂钩处理过程来对系统的某些类型事件进行监控,这些事件与某个特定的线程或系统中的所有事件相关.函数原形:HHOOK SetWindowsHookEx( int idHook, HOOKPROC lpfn...
偶遇需要自己解析 TTF 字体并显示,此做。。。using System;using System.Collections.Generic;using System.Drawing.Text;using System.IO;using System.Linq;using System.Runtim....
偶遇需要再WPF里面处理九宫格,因不喜截图缩放,即写成了HLSL的Effcectsampler2D input : register(s0);/// The float of the Left./// 1/// 20/// 20float Left : register(C0);/// The f....
setDesignResolutionSize()//设计分辨率大小及模式setContentScaleFactor()//内容缩放因子setSearchPaths()//资源搜索路径getWinSize()//设计分辨率getVisibleSize()//设计分辨率可视区域大小getVisible...
using System;using System.Collections.Generic;using System.Drawing;using System.Linq;using System.Text;using System.Net;using System.Net.Sockets;names...
什么是事件,事件和委托的区别?(1)事件是委托的封装,可以理解为一种特殊的委托。(2)事件里面其实就两个方法(即add_event()和remove_event())和一个私有的委托变量,这两个方法里面分别是对这个私有 的委托变量进行的合并和移除,当调用事件的+=时其实是调用的事件里面的add_ev...
//建立新的系统进程 System.Diagnostics.Process process = new System.Diagnostics.Process(); //设置文件名,此处为图片的真实路径+文件名 process.StartInfo.FileName = fileName; //...
挤了点时间出来学maven+springMVC,然后demo部署到服务器上。maven打包后部署到服务器上,重启tomcat。这个路线有点长,所以写个辅助脚本减少时间成本。现在记录一下。 先介绍两个工具,PUTTY和WINSCP。 PUTTY是一个不常用的,可以在windows平台通过ssh...
功能界面源码:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System...
序列化实体类成为一个干净的Xml,不带空格、换行符以及命名空间 /// /// 序列化成XML /// /// /// /// public static string XmlSerializ...
自动递归生成树,点击树节点的事件在treeView1_AfterSelect里编写,不多说了,直接上代码,备注在这里一下 public partial class Form1 : Form { public Form1() { I...
开发环境:win7旗舰版,vs2013服务器环境:windows server 2008 R2 IIS7.5目的:在局域网搭建一个网站,用户必须使用域帐号登录网站访问Step 1:创建project ,选择MVC,修改Authentication为WindowsAuthenticationStep2...
Limak is a little bear who learns to draw. People usually start with houses, fences and flowers but why would bears do it? Limak lives in the forest a...