码迷,mamicode.com
首页 >  
搜索关键字:cgcontextref    ( 206个结果
MACOS获得 CGContextRef 获得图片数据类型转换 NSImage、CIImage、CGImageRef
将NSImage转换为CIImage#import // convert NSImage to bitmapNSImage * myImage= [self currentImage];NSData* tiffData = [myImage TIFFRepresentation];NSBitmapI...
分类:其他好文   时间:2014-07-22 23:16:13    阅读次数:586
CGContextAddArc
这个函数让我在纸上画了半天才搞明白,把我的理解给大家分享下。void CGContextAddArc(CGContextRef c, CGFloat x, CGFloat y, CGFloat radius, CGFloat startAngle, CGFloat endAngle, int clo...
分类:其他好文   时间:2014-05-12 09:32:43    阅读次数:266
ios中layer动画和UIView动画代码总结
kCATransitionFade淡出  kCATransitionMoveIn覆盖原图  kCATransitionPush推出  kCATransitionReveal底部显出来    pageCurl   向上翻一页  pageUnCurl 向下翻一页  rippleEffect 滴水效果  suckEffect 收缩效果,如一块布被抽走  cube 立方体效果  og...
分类:移动开发   时间:2014-05-06 23:21:10    阅读次数:421
Quartz2D绘图
在viewController里,添加 1 //创建一个基于UIImage的图形上下文 2 UIGraphicsBeginImageContext(CGSizeMake(320, 450)); 3 //取出“当前”上下文,也就是上句话创建的上下文,返回CGContextRef类型...
分类:其他好文   时间:2014-04-29 23:34:20    阅读次数:434
在view扣除正方形
- (void)drawRect:(CGRect)rect { [super drawRect:rect]; CGContextRef ctx = UIGraphicsGetCurrentContext(); CGContextSetRGBFillColor(ctx, .3, .3, .3, .1); CGContextFillRect(ctx, self.boun...
分类:其他好文   时间:2014-04-29 13:33:22    阅读次数:284
ios:CGContextRef 渲染中文问题
1.项目中遇到drawRect来渲染中文,但是调用CGContextShowTextAtPoint方法失败,于是查了些资料整理总结一下2.既然apple能显示中文,那么自然也是支持中文的。查看所有字体:NSArray *fontFamilies = [UIFontfamilyNames];for(N...
分类:移动开发   时间:2014-04-28 13:52:50    阅读次数:550
206条   上一页 1 ... 19 20 21
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!