使用SolidBrush单色画笔 Bitmap bitmap = new Bitmap(800, 600); Graphics graphics = Graphics.FromImage(bitmap); graphics.Clear(Color.White); SolidBrush mySolid...
分类:
其他好文 时间:
2014-12-08 17:40:01
阅读次数:
170
关于PHP目前比较常见的五大运行模式:1)CGI(通用网关接口 / Common Gateway Interface)2)FastCGI(常驻型CGI / Long-Live CGI)3)CLI(命令行运行 / Command Line Interface)4)Web模块模式(Apache等Web服...
分类:
Web程序 时间:
2014-12-08 17:34:10
阅读次数:
211
用GCD写Objective-c的单例模式和C#有比较大的区别 声明h文件 #import @interface me : NSObject
@property (nonatomic) NSInteger age;
+(instancetype)makeme;
@end instancetype和i...
分类:
其他好文 时间:
2014-12-08 17:21:11
阅读次数:
242
如果有人问你为什么有abstract interface 修饰类,答案一定是他看到的这种方式一定是反编译出来的结果。实际中abstract interface和interface修饰的类没有区别。下面就上面的问题,介绍下抽象接口的概念。 在程序设计过程中,读者很可能遇到这样一种困境:设计了一个接口,...
分类:
编程语言 时间:
2014-12-08 17:10:51
阅读次数:
237
1创建画布(创建Graphics对象)Bitmap bitmap = new Bitmap(80,80);Graphics g=Graphics.FromImage(bitmap);2创建Pen对象(直线曲线)public Pen =new Pen(Color.Black);Pen pen= new...
分类:
其他好文 时间:
2014-12-08 15:15:36
阅读次数:
199
抽象工厂模式factory:public interface Send { public void send();}public class SmsSendImpl implements Send { @Override public void send() { // TODO Auto-gene....
分类:
其他好文 时间:
2014-12-08 13:47:14
阅读次数:
160
元素/代码 描述$_SERVER['PHP_SELF'] 当前执行脚本的文件名,与 document root 有关。$_SERVER['GATEWAY_INTERFACE'] 服务器使用的 CGI 规范的版本。$_SERVER['SERVER_ADDR'] 当前运行脚本所在...
分类:
Web程序 时间:
2014-12-08 12:16:53
阅读次数:
306
Standard Controls示例下载地址:http://developer.xamarin.com/content/StandardControls/Xamarin官网上的IOS示例“Standard Controls”编译报错:xamarinFailedtocompileinterfacef...
分类:
其他好文 时间:
2014-12-08 12:10:37
阅读次数:
181
效果图:每隔1s会自动切换图像和小白点。工程图:代码:RootViewController.h#import @interface RootViewController : UIViewController{ UIScrollView *imageScrollView; UIPageCo...
分类:
其他好文 时间:
2014-12-08 10:43:48
阅读次数:
192