首页 > 编程语言 >python 修改ps背景颜色

python 修改ps背景颜色

时间:2022-11-11 20:12:34浏览次数:69  
标签:ps foregroundColor photoshop python 修改 rgb backgroundColor

需要安装  photoshop-python-api

1 """Change the color of the background and foreground.""" 2 # Import local modules 3 from photoshop import Session 4 5 6 with Session() as ps: 7 foregroundColor = ps.SolidColor() 8 foregroundColor.rgb.red = 255 9 foregroundColor.rgb.green = 0 10 foregroundColor.rgb.blue = 0 11 ps.app.foregroundColor = foregroundColor 12 13 backgroundColor = ps.SolidColor() 14 backgroundColor.rgb.red = 0 15 backgroundColor.rgb.green = 0 16 backgroundColor.rgb.blue = 0 17 ps.app.backgroundColor = backgroundColor

 

标签:ps,foregroundColor,photoshop,python,修改,rgb,backgroundColor
From: https://www.cnblogs.com/dede369/p/16881613.html

相关文章

  • Python 监控web站点异常邮件提醒并自动重启
    生产环境中站点,如邮于访问量大出现异常不能正常运行,一般可以通过重启解决的。我们可以尝试通过Python监控监控web站点异常,发送邮件通知并自动重启服务。本文主要介绍Python......
  • VueRouter笔记 - 路由参数(query/params/props/meta)
    路由参数目录路由参数1.query2.params参数3.props参数4.meta参数1.queryquery可以用于在不同路由之间传递数据(大多数是父传子)一般网页在跳转时显示的链接,?后......
  • #python笔记
    python笔记数据类型查看使用type()语句来查看数据的类型方法一:使用print直接输出信息print(type("黑马程序员")print(type("666"))print(type(11.345))方法二:......
  • python调用golang 从指定序列中找出一组与目标值最接近的子序列 kayb
    python调用golang从指定序列中找出一组与目标值最接近的子序列编写go代码生成so库python代码调用编写go代码写入hello.go文件packagemainimport( "C" "en......
  • onps栈使用说明(2)——ping、域名解析等网络工具测试
    1.ping测试协议栈提供ping工具,其头文件为“net_tools/ping.h”,将其include进你的目标系统中即可使用这个工具。……#include"onps.h"#include"net_tools/ping.h"/......
  • python的字符串、元祖和列表总结
    字符串、列表、元组统称:序列类型序列的共同特征:1、都有索引值,内部元素是有序的。2、支持切片操作3、都可以通过len()去获取元素的个数。列表和元祖之间的转换元......
  • 怎么修改mysql的隔离级别
    原文网址:https://m.php.cn/article/486717.html修改mysql隔离级别的方法:1、找到“skip-external-locking”;2、添加“transaction-isolation=READ-COMMITTED”内容;3、重......
  • python合并两个dict
    合并dict,有以下几种方法:1.常规遍历d1={}d2={}d3={}fork,vind1.items():d3[k]=vfork,vind2.items():d3[k]=v2.items相加法d3=dict(d1.item......
  • python用ARIMA模型预测CO2浓度时间序列实现|附代码数据
     全文下载链接:http://tecdat.cn/?p=20424时间序列为预测未来数据提供了方法。根据先前的值,时间序列可用于预测经济,天气的趋势。时间序列数据的特定属性意味着通常需......
  • 拓端tecdat|R语言代写面板平滑转移回归(PSTR)分析
    建模过程包括三个阶段:规范,估计和评估。该软件包提供的工具可帮助用户进行模型规范测试,进行PSTR模型评估以及进行模型评估。在程序包中实现了集群依赖性和异方差性一致性测试......