当前位置: 首页 > news >正文

电源网站模版进口彩妆做的好的网站

电源网站模版,进口彩妆做的好的网站,建站优化一条龙,网站推广优化网址这两种都可以用来画线#xff0c;前一种将整条线加入后画出#xff0c;后一种对每个点进行和前一个点的连线。 sample1-(void)drawLine:(YJLines *)line{ int count [line.points count]; CGPoint addLines[count]; for (int j0; j [line.points count]; j) { CGPoint …这两种都可以用来画线前一种将整条线加入后画出后一种对每个点进行和前一个点的连线。 sample1 -(void)drawLine:(YJLines *)line{     int count [line.points count];     CGPoint addLines[count];     for (int j0; j [line.points count]; j)      {         CGPoint point  CGPointFromString((NSString *)[line.points objectAtIndex:j]);         addLines[j].x  point.x;         addLines[j].y  point.y;     }     CGContextRef context  UIGraphicsGetCurrentContext();     CGContextSetLineJoin(context, kCGLineJoinRound);     CGContextSetLineCap(context , kCGLineCapRound);     CGContextSetBlendMode(context, kCGBlendModeNormal);     CGContextBeginPath(context);     CGContextAddLines(context, addLines, count);     CGContextSetLineWidth(context, line.lineWidth);     CGContextSetAlpha(context, line.lineAlpha);     CGContextSetStrokeColorWithColor(context, line.lineColor.CGColor);     CGContextStrokePath(context); } sample2 - (void) contextDrawFrom: (CGPoint)last toPoint:(CGPoint)current withLine:(YJLines *)ln {     CGContextRef context  UIGraphicsGetCurrentContext(); //    CGContextSetMiterLimit(context, 0.5);     CGContextSetLineJoin(context, kCGLineJoinRound);     CGContextSetLineCap(context , kCGLineCapRound);     CGContextSetBlendMode(context, kCGBlendModeNormal);     CGContextBeginPath(context);     CGContextMoveToPoint(context, last.x, last.y);     CGContextAddLineToPoint(context, current.x, current.y);     CGContextSetLineWidth(context, ln.lineWidth);     CGContextSetAlpha(context, ln.lineAlpha);     CGContextSetStrokeColorWithColor(context, ln.lineColor.CGColor);     CGContextStrokePath(context); } AddLineToPoint实现方式在线条alpha为1,即不透明的时候和AddLines一样而且是实时画线。 但是当线条半透明的时候AddLines在一条线自身重叠时不会透明度重叠。 而AddLineToPoint却会导致透明度重叠且move touch的点出也会出现透明度重叠会显示成点和点之间透明度正确点上不透明的问题。转载于:https://www.cnblogs.com/pengyingh/articles/2403225.html
http://wiki.neutronadmin.com/news/169846/

相关文章:

  • 淘宝优惠劵网站怎么做wordpress通过id获取文章
  • 宝安网站设计排名手机网站建设与制作
  • 偷dede网站模板佛山外贸网站建设行情
  • 塘厦 网站建设 百度推广新建网页的方法有哪些
  • 如何办网站 论坛中国flash网站模板中心
  • 做网站要学什么东西wap网站开发流程
  • 企业网站托管服务公司网站建设中的功能
  • 成都网站制作计划网站建设公司如何做大
  • 百度统计网站速度诊断工具苏州知名网站建设公司
  • 怎样在网站上做专栏wordpress flat
  • 黄岛英文网站建设竞猜网站开发
  • 怎么样建网站卖东西wordpress所有版本
  • 自己怎么做彩票网站吗网站建设有哪些步骤
  • 浙江住房和城乡建设厅网站首页大型网站平台建设
  • 门户网站简称顺德网站建设服务平台
  • 专业做传奇网站解析wordpress 编辑器隔行
  • 欢迎访问中国建设银行官方网站洛阳网站建设汉狮报价
  • 辽宁城乡住房建设厅网站首页wordpress 文章内
  • 罗湖网站建设 信科网络安卓手机搭建网页
  • 县区网站集约化建设网站建设ppt介绍
  • 网站前台展示网站前端工程师
  • 湛江市住房建设局网站360建筑网360
  • 清河做网站哪儿便宜贵阳市公共住宅投资建设集团官方网站
  • 建设网站平台合同范本居民瑞app下载
  • 沧州有做网站的吗上饶做网站最好的公司
  • 建设银行网站查询密码设置天津定制网站建设
  • 设计师国外网站单一产品网站如何做seo
  • 网站建设评审上海 专业网站设计
  • 南昌模板建站定制网站无锡seo公司
  • 上海网站建设的新手卖家做来赞达网站如何