Edit in GitHubLog an issue

DocumentCreateOptions

一个对象的字面意思可以用以下任何一个属性来构建 并传递给 Photoshop.createDocument. 作为一种类型。 DocumentCreateOptions 可以在Typescript开发中使用。

Copied to your clipboard
1const options = { name: "Web mockup", preset: "Web Large" };
2require('photoshop').app.createDocument(options);
名称类型默认值范围最低版本描述
depthnumber8[8,16,32]22.5位深度
fillDocumentFill--22.5文件的填充颜色。
fillColorSolidColor--23.0文件的自定义填充颜色。
heightnumber--22.5图像的高度,单位是像素。
modeNewDocumentMode--22.5ImageMode类别。
namestring--22.5新文档的名称。
pixelScaleFactornumber--22.5像素比例系数。
presetstring--22.5预设。
presetJSONstring--22.5JSON预设,需要JSON化的字符串。
profilestring--22.5使用配置文件名称的颜色配置文件。
resolutionnumber--22.5图像的分辨率。
widthnumber--22.5图像的宽度,单位是像素。
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.