Python Imaging Library: PSDraw Module(Postscript打印机模块)
Python Imaging Library: PSDraw Module(Postscript打印机模块)
PSDraw模块为Postscript打印机提供简单的打印支持。
您可以通过这个模块打印文本、图形和图像。
类
PSDraw
PSDraw.PSDraw(file) ⇒ PSDraw instance
设置文件打印。如果文件被省略了,使用sys.stdout。
PSDraw方法
begin
ps.begin_document()
设置文档的打印。
end
ps.end_document()
结束打印。
line
ps.line(from, to)
在两点之间画一条线。坐标是指Postscript点坐标(每英寸72个点,(0,0)是页面的左下角)。
rectangle
ps.rectangle(box)
绘制一个矩形。
text
ps.text(position, text)
ps.text(position, text, alignment)
在给定位置绘制文本。在调用此方法之前,必须使用setfont设置字体。
image
ps.image(box, image, dpi=None)
画一个以给定方框为中心的图像。
setfont
ps.setfont(font, size)
设置使用哪种字体。字体参数是一个Postscript字体名称,大小参数以点表示。
setink
ps.setink(ink)
设置与后续操作一起使用的像素值。
setfill
ps.setfill(onoff)
设置随后的矩形操作是否应该填充矩形区域还是仅仅绘制轮廓。
Python Imaging Library: PSDraw Module(Postscript打印机模块)相关推荐
- Python Imaging Library: ImageSequence Module(图像序列模块)
Python Imaging Library: ImageSequence Module(图像序列模块) ImageSequence模块包含一个包装器类,可以让您遍历图像序列中的所有帧. Functi ...
- Python Imaging Library: ImageFile Module(图像文件模块)
Python Imaging Library: ImageFile Module(图像文件模块) ImageFile模块为图像打开和保存功能提供了支持函数. 此外,它还提供了一个解析器类,可以被用来对 ...
- Python Imaging Library: ImageEnhance Module(图像增强模块)
Python Imaging Library: ImageEnhance Module(图像增强模块) # 图像增强模块(ImageEnhance Module) PilImg_Enhance = I ...
- Python Imaging Library: ImageWin Module(图像Windows模块)
Python Imaging Library: ImageWin Module(图像Windows模块) ImageWin模块支持在Windows上创建和显示图像. ImageWin可以与Python ...
- Python Imaging Library: ImageTk Module(图像Tkinter模块)
Python Imaging Library: ImageTk Module(图像Tkinter模块) ImageTk模块支持从图片中创建和修改Tkinter位图图像和PhotoImage对象. 例如 ...
- Python Imaging Library: ImageQt Module(图像QT模块)
Python Imaging Library: ImageQt Module(图像QT模块) (版本1.1.6) ImageQt 模块支持从图片中创建PyQt4 QImage对象. 注意:如果你使用的 ...
- Python Imaging Library: ImagePath Module(图像路径模块)
Python Imaging Library: ImagePath Module(图像路径模块) ImagePath模块用于存储和操作二维向量数据.路径对象可以在 ImageDraw 模块中传递方法. ...
- Python Imaging Library: ImagePalette Module(图像调色板模块)
Python Imaging Library: ImagePalette Module(图像调色板模块) FIXME: 这个部分不太符合当前现状.现在,将调色板添加到图像的最安全的方法是在字符串中使用 ...
- Python Imaging Library: ImageOps Module(图像运算模块)
Python Imaging Library: ImageOps Module(图像运算模块) (版本1.1.3) ImageOps模块包含许多"现成的"图像处理操作.这个模块是实 ...
最新文章
- CSDN送会员?免费的!都来领!
- python3并发编程基础
- 实现多种方式对MYSQL进行备份
- Pycharm断点失效(不起作用),原来是matplotlib.pyplot.show()函数的原因
- 常见算法的python实现(Github标星75.5k+)
- 极光实时监听怎么调用_源码分析 Sentinel 实时数据采集实现原理(图文并茂)
- mysql账户最小授权_mysql 创建帐号并授权
- 学习C++项目—— 搭建多进程网络服务框架,增加业务和日志,心跳机制
- 记录|深度学习100例-卷积神经网络(CNN)minist数字分类 | 第1天
- 网上很牛逼的IT技术网站
- html程序产品目录,产品目录(Catalog)制作大师
- 15.PG分区表-内置分区表
- 【计算机毕业设计】基于微信小程序的师生答疑平台的设计与实现
- 高考测试分数软件,2021根据分数测我能上的大学的软件
- 【读点论文】Conformer: Local Features Coupling Global Representations for Visual Recognition卷积提取局部,SA获取全局
- 常用JAVA面试题库
- 朱建平:如何架构海量存储系统(附视频回放)
- python实现按键精灵找色点击功能,使用pywin32和Pillow库
- ubuntu 监视显卡使用情况
- 计算机硬件技术基础mooc,中国大学 MOOC_计算机硬件技术基础_2020章节测试答案