自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (2)
  • 收藏
  • 关注

原创 复习Core Graphics-2

1.CGRectInfinite poisition 看作在负无穷处,整个矩形无穷大 CGRectNull, position看作在正无穷处,矩形面积为0,和CGRectNull union 返回原矩形2.CGPointCreateDictionaryRepresentation CGPointMakeWithDictionaryRepresentation , CGSize, CGR

2016-12-04 15:49:22 289

原创 复习Core Graphics-1

1.UIGraphicsBeginImageContextWithOptions(targetSize,isOpaue,deviceScale);  UIGraphicsGetCurrentContext(); CGUIGraphicsGetImageFromCurrentContext();  UIGraphicsEndImageContext();2.CGColorSpaceCreateD

2016-12-04 11:55:19 273

原创 复习iOS动画-Easing

1.CAMediaTimingFunction   用functionWithControlPoints:::: 自定义函数,控制点两个端点(0,0),(1,1),另外两个控制点控制曲线形状2.实现复杂轨迹动画,可以用key frame动画,将整个动画分解成非常小的段,根据自己定义的interpolate函数得到每个端点的值,(每秒60帧)3.objCType @encode(CG

2016-12-02 17:59:19 196

原创 复习iOS动画-Layer Time

1.CAMediaTiming beginTime,duration,repeateDuration等衡量时间的属性,都是相对parent time space而言,speed控制parent time space是如何映射到receiver‘s time space的,例如speed=2.0,那么将2倍快于parent time space2.timeOffset不受speed影响,他只反映

2016-12-02 15:59:31 189

原创 复习iOS动画-Explicity Animation

1.fromValue toValue byValue  不同类型的wrap  CGFloat->NSNumber  CGPoint,CGRect,CGSize,CATransform3D->NSValue  CGImageRef,CGColorRef->id 2.addAnimation:forKey: 对render tree 添加动画,需要同步model tree的值,在动画开始之前同步

2016-12-02 11:45:44 463

原创 复习iOS动画-Transaction

1.CATransaction采用stack式的调用方式 begin和commit 成对嵌套,可以设置 duration,completion block,disableActions,UIView的动画api,对其进行wrap,2.当CALayer的属性改变时,首先尝试调用delegate的actionForKey,如果返回nil则立即改变没有动画,如返回一个CAAction则使用它进行动画

2016-12-01 14:43:04 235

原创 复习iOS动画-layer-4

1.UIView的transform,layer的affineTransform, 为CGAffineTransform,layer的transform为CATransform3D2.combining transform 注意 顺序3.景深 m34  -1.0/5004.vanishing point,  注意所有sublayer都有同一个vanishing point,先将其置于c

2016-11-30 12:06:57 170

原创 复习iOS动画-layer-3

1.maskToBounds 为YES时,subLayer , border ,全部都被clip了,要同时实现shadow,需要包一个layer2.shodowOffset,左上角为原点。core animation在计算阴影时会根据内容形状产生,为了性能考虑,可以使用shadowPath3.layer masking,设置mask时,mask的位置是相对它mask对象layer而言,al

2016-11-30 10:36:46 183

原创 复习iOS动画-layer-2

1.layer 的 positon 是anchorPoint所在点相对于super layer 的位置,anchorPoint 是 unit coordinate , frame是个合成属性,由bounds,positon,transform影响,当transform改变时,frame是包围矩形。2. convertPoint:fromLayer: convertPoint:toLayer: 

2016-11-29 22:24:55 171

原创 复习iOS动画-layer

1.contents 可以放置一个CGImageRef  , layer.contents = (__bridge id)image.CGImage;2.contentsGravity 设置内容显示方式,UIView的contentMode操作这个属性3.contentsScale  用于pixel到point 的数量映射关系。 注意在设置contents的时候,CGImage没有携带sc

2016-11-29 21:30:48 230

Inside OLE 2

学习OLE的必看书籍 学习SHELL的必看书籍

2011-12-01

用MFC做的画图程序

用MFC做的画图程序,可以画各种线、图形、设置各种颜色、剪裁、保存,加载位图。Visual studio 2008编译。

2009-05-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除