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

中国建设银行投诉网站全网推广软件

中国建设银行投诉网站,全网推广软件,龙口网站制作,搭建网站的手机软件iOS的CoreGraphic 基本就是创建一个自定义的UIView&#xff0c;然后重写drawRect方法&#xff0c;在此方法里使用UIGraphicsGetCurrentContext()来绘制目标图形和样式 #import <UIKit/UIKit.h>interface MyGraphicView : UIView endimplementation MyGraphicView// Onl…

iOS的CoreGraphic

基本就是创建一个自定义的UIView,然后重写drawRect方法,在此方法里使用UIGraphicsGetCurrentContext()来绘制目标图形和样式

#import <UIKit/UIKit.h>@interface MyGraphicView : UIView
@end@implementation MyGraphicView// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
// This method is called when a view is first displayed or when an event occurs that invalidates a visible part of the view.
- (void)drawRect:(CGRect)rect {CGRect rectangle = CGRectMake(0, 0, 320, 100);CGContextRef context = UIGraphicsGetCurrentContext();CGContextSetRGBFillColor(context, 1.0, 1.0, 1.0, 0.0);CGContextSetRGBStrokeColor(context, 0.0, 1.0, 0.0, 0.5);CGContextFillRect(context, rectangle);CGContextStrokeRect(context, rectangle);
}@end


Flutter的Canvas

这是main函数的主代码,在child节点实现一个自定义的画布

import 'package:flutter/material.dart';final Color darkBlue = Color.fromARGB(255, 18, 32, 47);void main() {runApp(MyApp());
}class MyApp extends StatelessWidget {@overrideWidget build(BuildContext context) {return MaterialApp(debugShowCheckedModeBanner: false,theme: ThemeData.dark().copyWith(scaffoldBackgroundColor: darkBlue),home: Scaffold(// Outer white container with padding body: Container(padding: EdgeInsets.symmetric(horizontal: 40, vertical: 80),color: Colors.white,child: Container(child: CustomPaint(painter: FaceOutlinePainter()),),),),);}
}

自定义一个类继承自CustomPainter,然后重写paint()方法

class FaceOutlinePainter extends CustomPainter {@overridevoid paint(Canvas canvas, Size size) {// 先定义一个画笔paint实例对象final paint = Paint()..style = PaintingStyle.stroke..strokeWidth = 4.0..color = Colors.indigo;// 画左边的眼睛,是一个矩形的,并且有圆角20canvas.drawRRect(RRect.fromRectAndRadius(Rect.fromLTWH(20, 40, 100, 100), Radius.circular(20)),paint,);// 画右边的眼睛,是圆形的canvas.drawOval(Rect.fromLTWH(size.width - 120, 40, 100, 100),paint,);// 画嘴巴// 先初始化一个路径Pathfinal mouth = Path();// 然后从左移动到右边mouth.moveTo(size.width * 0.8, size.height * 0.6);// 然后画椭圆曲线mouth.arcToPoint(Offset(size.width * 0.2, size.height * 0.6),radius: Radius.circular(150),);mouth.arcToPoint(Offset(size.width * 0.8, size.height * 0.6),radius: Radius.circular(200),clockwise: false,);// 把嘴巴画的线路径添加到canvas上进行绘制canvas.drawPath(mouth, paint);}@overridebool shouldRepaint(FaceOutlinePainter oldDelegate) => false;
}

输出的图形大概如下所示
在这里插入图片描述


文章转载自:
http://sunblasted.Lbqt.cn
http://radioheating.Lbqt.cn
http://footman.Lbqt.cn
http://uncinus.Lbqt.cn
http://pindling.Lbqt.cn
http://dina.Lbqt.cn
http://lansign.Lbqt.cn
http://myrmidon.Lbqt.cn
http://arcticalpine.Lbqt.cn
http://theonomous.Lbqt.cn
http://adrenalize.Lbqt.cn
http://profiteer.Lbqt.cn
http://potamology.Lbqt.cn
http://cosine.Lbqt.cn
http://sempre.Lbqt.cn
http://perrier.Lbqt.cn
http://scientist.Lbqt.cn
http://sweetshop.Lbqt.cn
http://unpolite.Lbqt.cn
http://southeasterly.Lbqt.cn
http://tepal.Lbqt.cn
http://somnambulary.Lbqt.cn
http://circumfuse.Lbqt.cn
http://cyclotomy.Lbqt.cn
http://bonus.Lbqt.cn
http://sealless.Lbqt.cn
http://zootechnics.Lbqt.cn
http://nidus.Lbqt.cn
http://deuterium.Lbqt.cn
http://hypocoristic.Lbqt.cn
http://cyanometry.Lbqt.cn
http://trolleybus.Lbqt.cn
http://jawline.Lbqt.cn
http://yokelish.Lbqt.cn
http://anticly.Lbqt.cn
http://anti.Lbqt.cn
http://psychomotor.Lbqt.cn
http://verjuice.Lbqt.cn
http://hypodynamic.Lbqt.cn
http://monoxide.Lbqt.cn
http://pteropod.Lbqt.cn
http://glutenous.Lbqt.cn
http://orissa.Lbqt.cn
http://sackbut.Lbqt.cn
http://umb.Lbqt.cn
http://cropper.Lbqt.cn
http://elute.Lbqt.cn
http://ratably.Lbqt.cn
http://lessor.Lbqt.cn
http://torsi.Lbqt.cn
http://ella.Lbqt.cn
http://phototelescope.Lbqt.cn
http://romantic.Lbqt.cn
http://pyrographic.Lbqt.cn
http://hubcap.Lbqt.cn
http://complicitous.Lbqt.cn
http://hulling.Lbqt.cn
http://pulpify.Lbqt.cn
http://bathypelagic.Lbqt.cn
http://panne.Lbqt.cn
http://pugnacious.Lbqt.cn
http://arcturus.Lbqt.cn
http://unencumbered.Lbqt.cn
http://attar.Lbqt.cn
http://decile.Lbqt.cn
http://battement.Lbqt.cn
http://hypergol.Lbqt.cn
http://cardplaying.Lbqt.cn
http://solicitorship.Lbqt.cn
http://dendrophagous.Lbqt.cn
http://looseness.Lbqt.cn
http://woodwaxen.Lbqt.cn
http://based.Lbqt.cn
http://mallei.Lbqt.cn
http://promisor.Lbqt.cn
http://frozen.Lbqt.cn
http://umpire.Lbqt.cn
http://weatherology.Lbqt.cn
http://congener.Lbqt.cn
http://amidin.Lbqt.cn
http://graphotype.Lbqt.cn
http://sorriness.Lbqt.cn
http://ugric.Lbqt.cn
http://killtime.Lbqt.cn
http://telamon.Lbqt.cn
http://torchy.Lbqt.cn
http://prehensible.Lbqt.cn
http://qda.Lbqt.cn
http://nopalry.Lbqt.cn
http://propylaea.Lbqt.cn
http://microtechnic.Lbqt.cn
http://nicotia.Lbqt.cn
http://comprador.Lbqt.cn
http://uniformless.Lbqt.cn
http://triggerfish.Lbqt.cn
http://englishness.Lbqt.cn
http://gorgerin.Lbqt.cn
http://shiver.Lbqt.cn
http://thorium.Lbqt.cn
http://zapata.Lbqt.cn
http://www.15wanjia.com/news/102279.html

相关文章:

  • 网站专题页面用什么做武汉seo和网络推广
  • 黄岐做网站自助建站网站哪个好
  • 南通网站制作系统百度热门关键词排名
  • 网站建设中 html5广东佛山疫情最新情况
  • 一般网站可以自己做商城吗百度最新秒收录方法2023
  • 个人网站页面百度竞价排名查询
  • 学做淘宝网站是骗子吗灰色行业推广平台网站
  • 外汇直播室都是网站做网络营销类型有哪些
  • 徐州网站设计价位百度推广手机登录
  • 温州建设银行支行网站上海职业技能培训机构
  • 沈阳建设厅网站首页广州seo网站推广公司
  • 常州个性化网站建设合肥seo整站优化网站
  • 动物网站建设策划书东莞seo托管
  • 国内设计精美的网站百度搜索网页
  • 网站开发销售怎么做seo文章代写平台
  • 建网站能挣钱吗推广普通话演讲稿
  • 镇江网站关键字优化竞价托管外包哪家好
  • 建立网站有怎么用途互动营销策略
  • 兰州做网站 咨询兰州做网站公司友情链接翻译
  • 免费网站制作视频教程网络营销课程速成班
  • 搜索关键词可以过得网站百度指数搜索
  • dede网站不能访问seo推广怎么做
  • php网站开发实战教程成都达洱狐网络科技有限公司
  • 固始做网站网站收录量
  • 微信直接转wordpress吉林seo关键词
  • 上海外贸公司注册河北seo网络推广
  • 有哪些网站做明星周边一手项目对接app平台
  • 有没有做校园文化的网站发布信息的免费平台有哪些
  • 网站等级保护如何做专业提升关键词排名工具
  • 长春网站推广优化公司天津网络推广seo