下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。
内存溢出小编现在分享给大家,也给大家做个参考。
//画四个边角 CGContextSetlinewidth(ctx,2); CGContextSetRGBstrokecolor(ctx,83 /255.0,239/255.0,111/255.0,1);//绿色 //左上角 CGPoint poinstopleftA[] = { CGPointMake(rect.origin.x+0.7,rect.origin.y),CGPointMake(rect.origin.x+0.7,rect.origin.y + 15) }; CGPoint poinstopleftB[] = {CGPointMake(rect.origin.x,rect.origin.y +0.7),CGPointMake(rect.origin.x + 15,rect.origin.y+0.7)}; [self addline:poinstopleftA pointB:poinstopleftB ctx:ctx]; //左下角 CGPoint poinsBottomleftA[] = {CGPointMake(rect.origin.x+ 0.7,rect.origin.y + rect.size.height - 15),CGPointMake(rect.origin.x +0.7,rect.origin.y + rect.size.height)}; CGPoint poinsBottomleftB[] = {CGPointMake(rect.origin.x,rect.origin.y + rect.size.height - 0.7),CGPointMake(rect.origin.x+0.7 +15,rect.origin.y + rect.size.height - 0.7)}; [self addline:poinsBottomleftA pointB:poinsBottomleftB ctx:ctx]; //右上角 CGPoint poinstopRightA[] = {CGPointMake(rect.origin.x+ rect.size.wIDth - 15,rect.origin.y+0.7),CGPointMake(rect.origin.x + rect.size.wIDth,rect.origin.y +0.7 )}; CGPoint poinstopRightB[] = {CGPointMake(rect.origin.x+ rect.size.wIDth-0.7,CGPointMake(rect.origin.x + rect.size.wIDth-0.7,rect.origin.y + 15 +0.7 )}; [self addline:poinstopRightA pointB:poinstopRightB ctx:ctx]; CGPoint poinsBottomrightA[] = {CGPointMake(rect.origin.x+ rect.size.wIDth -0.7,rect.origin.y+rect.size.height+ -15),CGPointMake(rect.origin.x-0.7 + rect.size.wIDth,rect.origin.y +rect.size.height )}; CGPoint poinsBottomrightB[] = {CGPointMake(rect.origin.x+ rect.size.wIDth - 15,rect.origin.y + rect.size.height-0.7),rect.origin.y + rect.size.height - 0.7 )}; [self addline:poinsBottomrightA pointB:poinsBottomrightB ctx:ctx]; CGContextstrokePath(ctx);
以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
总结以上是内存溢出为你收集整理的防微信二维码扫描,中间透明区域全部内容,希望文章能够帮你解决防微信二维码扫描,中间透明区域所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)