??
1.Application
Application 是封装 WPF 特定功能的类,包括:
应用程序生存期: Activated,
Current,
Deactivated,
DispatcherUnhandledException,
Exit,
Run,
SessionEnding,
Shutdown,
ShutdownMode,
Startup。
应用...
分类:
移动开发 时间:
2014-06-20 11:48:07
阅读次数:
634
在实际的项目中,从音频设备采集到的音频的类型和编码器类型(aac
,amr)通常是不一致的。那么我们首先需要做重采样的过程。利用swr_convert
重新采样。这时候我们可能会遇到另外一个问题。就是在encode_audio的时候遇到more samples than frame size (av...
分类:
其他好文 时间:
2014-06-13 13:55:45
阅读次数:
405
1.在data.frame结构中,有时会有factor属性的值存在,不能直接使用as.numeric将factor中的数字直接转换,转换后的数据是错误的。一种方法是:使用as.character先将factor转换为character,再将character转换为numeric.2.在R中设定横轴的...
分类:
其他好文 时间:
2014-06-11 21:53:48
阅读次数:
341
create user frame identified by tiger;grant create
session to frame;grant create table to frame;grant create tablespace to
frame;grant create view to ...
分类:
数据库 时间:
2014-06-11 13:00:15
阅读次数:
283
enc_ctx->profile =FF_PROFILE_H264_MAIN
; enc_ctx->time_base.den = 24; enc_ctx->time_base.num =
1; enc_ctx->gop_size = 8; /* emit one intra frame ...
分类:
其他好文 时间:
2014-06-07 09:45:45
阅读次数:
486
if (self.tableView.contentSize.height >
self.tableView.frame.size.height) { CGPoint offset = CGPointMake(0,
self.tableView.contentSize.heig...
分类:
其他好文 时间:
2014-06-07 08:40:38
阅读次数:
187
屏幕截图UIImage分类+
(instancetype)captureWithView:(UIView*)view{ // 1.开启上下文
UIGraphicsBeginImageContextWithOptions(view.frame.size,NO,0.0); //
2.将控制器view的....
分类:
其他好文 时间:
2014-06-06 19:33:49
阅读次数:
186
用 Core Animation 实现图片的碎片化参考书籍:效果如下:原理其实非常简单哦:)。1.
创建一个CALayer,使用其 contents 属性来装载一张图片(获取图片的CGImage)2.
根据frame值裁剪图片,然后将裁剪的图片赋给你创建的更小的CALayer3. 实现这些更小的CA...
分类:
其他好文 时间:
2014-06-05 13:20:27
阅读次数:
457
用 Core Animation
实现图片的碎片化参考书籍:效果如下:原理其实非常简单哦:)。1. 创建一个CALayer,使用其 contents
属性来装载一张图片(获取图片的CGImage)2. 根据frame值裁剪图片,然后将裁剪的图片赋给你创建的更小的CALayer3. 实现这些更小的CA...
分类:
其他好文 时间:
2014-06-02 11:37:09
阅读次数:
337
1.新建一个继承自UITableViewCell的类2.重写initWithStyle:reuseIdentifier:方法?添加所有需要显示的子控件(不需要设置子控件的数据和frame,
子控件要添加到contentView中)?进行子控件一次性的属性设置(有些属性只需要设置一次, 比如字体\固定...
分类:
其他好文 时间:
2014-06-02 07:11:11
阅读次数:
227