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

东莞企石网站设计wordpress 事件插件

东莞企石网站设计,wordpress 事件插件,深圳建站服务中心,宜家在线设计要在版图上加中文#xff0c;如#xff1a; 可以通过如下方法实现#xff1a; 首先#xff0c;可以在ppt中加入文本框#xff0c;在文本框中输入想要加到版图上的中文内容#xff0c;如#xff0c;复旦大学#xff0c;并将文本框存为windows位图。 其次#xff0c;通…要在版图上加中文如 可以通过如下方法实现 首先可以在ppt中加入文本框在文本框中输入想要加到版图上的中文内容如复旦大学并将文本框存为windows位图。 其次通过如下代码就可以得到中文对应的版图 # Copyright (C) 2021 Luceda from technologies import silicon_photonics import ipkiss3.all as i3PIL_loaded False try:from PIL import ImagePIL_loaded True except:passtry:import ImagePIL_loaded True except:passif not PIL_loaded:raise AssertionError( PIL should be installed)class BitmapGrating(i3.PCell):image i3.DefinitionProperty()pixel i3.ChildCellProperty()class Layout(i3.LayoutView):pixel_pitch i3.Size2Property(default(2.0, 2.0))def _generate_instances(self, insts):im self.imagew im.size[0]h im.size[1]pixels im.getdata()period_x self.pixel_pitch[0]period_y self.pixel_pitch[1]for y in range(h):pen_down Falsefor x in range(w):p pixels[x y * w]if not pen_down:if p 0:pen_down Truestart_x xelif not p 0:pen_down Falsen_x x - start_xif n_x 1:insts i3.ARef(referenceself.pixel, origin(start_x * period_x, -y * period_y),period(period_x, period_y), n_o_periods(n_x, 1))else:insts i3.SRef(referenceself.pixel, position(start_x * period_x, -y * period_y))if pen_down:n_x x - start_x 1if n_x 1:insts i3.ARef(referenceself.pixel, origin(start_x * period_x, -y * period_y),period(period_x, period_y), n_o_periods(n_x, 1))else:insts i3.SRef(referenceself.pixel, position(start_x * period_x, -y * period_y))return instsclass BitmapGratingFromFile(BitmapGrating):image i3.LockedProperty()filename i3.StringProperty()def _default_image(self):return Image.open(self.filename).convert(1)class SquareBitmapGrating(BitmapGrating):pixel i3.ChildCellProperty(lockedTrue)def _default_pixel(self):from picazzo3.phc.generic.holes import RectHolereturn RectHole(name{}_pixel.format(self.name))# return i3.Rectangle(layerself.layer,box_sizeself.pixel_size)class Layout(BitmapGrating.Layout):# passpixel_size i3.Size2Property(default(1.0, 1.0))layer i3.LayerProperty(defaulti3.TECH.PPLAYER.WG.HOLE)def _default_pixel(self):lv self.cell.pixel.get_default_view(i3.LayoutView)lv.set(radii(0.5 * self.pixel_size[0], 0.5 * self.pixel_size[1]), processself.layer.process,purposeself.layer.purpose)return lvclass SquareBitmapGratingFromFile(BitmapGratingFromFile, SquareBitmapGrating): Load a bitmap from file and convert it to a grating:SquareBitmapGratingFromFile(filename xxx, pixel_size (x,y), pixel_pitch (x,y))passif __name__ __main__:logo SquareBitmapGratingFromFile(namefudan, filenamefudan.bmp)logo_layout logo.Layout(pixel_size(1.5, 1.5), pixel_pitch(3., 3.))logo_layout.write_gdsii(fudan.gds)
http://www.zqtcl.cn/news/163945/

相关文章:

  • 杨家坪网站建设企业生产erp软件公司
  • 网站模块设计软件河北seo优化_网络建设营销_网站推广服务 - 河北邢台seo
  • 陕西正天建设有限公司网站西安专业网页制作
  • 网站建设工作室介绍范文seo网站排名的软件
  • 上海网站建设-网建知识可编辑个人简历模板
  • 北京新鸿儒做的网站shopify做国内网站
  • 网站怎样做百度推广机关门户网站建设要求
  • 好看的网站后台模板沧州网站群
  • 深圳做网站排名公司哪家好哪些网站seo做的好
  • 国内网站建设推荐网站建设合同标准版
  • 哈尔滨网站制作费用企业成品网站模板
  • 网络广告网站怎么做北京海淀建设中路哪打疫苗
  • 房地产公司网站制作电影发布网站模板
  • 如何利用开源代码做网站网站本科
  • 公司是做小程序还是做网站宜宾住房与城乡建设部网站
  • 做网站哪个公司最社区问答网站开发
  • 网站引量方法网站建设推广页
  • 书店网站的建设网络营销方法有哪些
  • 深圳网站优化软件顺企网怎么样
  • 做网站的需要什么要求中国五百强企业排名表
  • 网络营销 企业网站外贸响应式网站建设
  • 网站网页制作公司o2o平台是什么意思啊
  • 惠州市网站建设个人网站怎么进入后台维护
  • 微信网站链接怎么做wordpress 绑定手机版
  • 网站建设的内容是什么在线阅读小说网站怎么建设
  • 福州网站开发哪家比较好建设网站需要掌握什么编程语言
  • 邹平做网站的公司莱芜人才网莱芜招聘
  • 旅行网站开发意义怎样优化网络速度
  • 手机微网站建设多少钱拟定网络设计方案
  • 厦门制作公司网站安卓原生app开发工具