![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ios-drawing
文章平均质量分 66
maomaoyu3211
这个作者很懒,什么都没留下…
展开
-
CGContext 小记
from http://www.cocoachina.com/bbs/read.php?tid=75122 CGContextRef context = UIGraphicsGetCurrentContext(); 设置上下文 CGContextMoveToPoint 开始画线 CGContextAddLineToPoint 画直线 CGContextAdd...原创 2013-11-05 22:08:17 · 98 阅读 · 0 评论 -
CGAffineTransformMake(a,b,c,d,tx,ty) 矩阵运算的原理
简记: CGAffineTransformMake(a,b,c,d,tx,ty) ad缩放bc旋转tx,ty位移,基础的2D矩阵 公式 x=ax+cy+tx y=bx+dy+ty 1.矩阵的基本知识: struct CGAffineTransform { CGFloat a, b, c, d; CGFloat tx, ty;}; CGAffineTr...原创 2013-11-05 22:09:05 · 339 阅读 · 0 评论 -
股票折线图demo(兼容SDK7编译,ios7)
https://github.com/easyui/StockPlotting // // SPView.m // StockPlotting // // Created by EZ on 13-11-5. // Copyright (c) 2013年 cactus. All rights reserved. // #define NLSystemVersionG...原创 2013-11-06 01:17:24 · 150 阅读 · 0 评论 -
iOS UIBezierPath类 介绍
感谢:http://blog.csdn.net/crayondeng/article/details/11093689 使用UIBezierPath类可以创建基于矢量的路径,这个类在UIKit中。此类是Core Graphics框架关于path的一个封装。使用此类可以定义简单的形状,如椭圆或者矩形,或者有多个直线和曲线段组成的形状。 1.Bezier Path 基础 U...原创 2013-11-08 09:18:46 · 96 阅读 · 0 评论 -
ios 截图 ,图片合成,画纯色UIimage
1、截取部分UIImage -(UIImage *)clipImageFromImage:(UIImage *)orgImage Rect:(CGRect)clipRect{ CGImageRef imageRef = orgImage.CGImage; CGImageRef subImageRef = CGImageCreateWithImageInRect(imag...原创 2013-11-08 11:39:29 · 146 阅读 · 0 评论 -
矢量绘图工具,自动生成CG代码
1、PaintCode http://www.paintcodeapp.com/ PaintCode is a vector drawing app that generates Objective-C code in real time. 2、opacity http://likethought.com/opacity/ Opacity is an easy to use ...原创 2013-11-09 13:46:35 · 227 阅读 · 0 评论 -
CGColorGetNumberOfComponents
[UIColor whiteColor] and [UIColor blackColor] use [UIColor colorWithWhite:alpha:] to create the UIColor. Which means this CGColorRef has only 2 color components, not 4 like colors created with [UICol...原创 2013-11-26 14:26:38 · 311 阅读 · 0 评论