跳转到内容

FXGSaveOptions

fxgSaveOptions

指定将文档保存为 FXG 文件时可能提供的选项。所有属性都是可选的。


fxgSaveOptions.artboardRange

如果 saveMultipleArtboards 为 true,则此选项用于多资源提取,指定画板范围。空字符串表示提取所有画板。

默认值:空字符串。

字符串。


fxgSaveOptions.blendsPolicy

FXG 用于扩展混合的策略。

默认值:BlendsExpandPolicy.AUTOMATICALLYCONVERTBLENDS

BlendsExpandPolicy


fxgSaveOptions.downsampleLinkedImages

如果为 true,链接的图像将被下采样(72 dpi)。

默认值:false

布尔值。


fxgSaveOptions.filtersPolicy

FXG 用于保留滤镜的策略。

默认值:FiltersPreservePolicy.KEEPFILTERSEDITABLE

FiltersPreservePolicy


fxgSaveOptions.gradientsPolicy

FXG 用于保留渐变的策略。

默认值:GradientsPreservePolicy.AUTOMATICALLYCONVERTGRADIENTS

GradientsPreservePolicy


fxgSaveOptions.includeUnusedSymbols

如果为 true,未使用的符号将被包含。

默认值:false

布尔值。


FXGSaveOptions.preserveEditingCapabilities

Section titled “FXGSaveOptions.preserveEditingCapabilities”

fxgSaveOptions.preserveEditingCapabilities

如果为 true,FXG 的编辑功能将被保留。

默认值:true

布尔值。


fxgSaveOptions.saveMultipleArtboards

如果为 true,所有画板或指定范围的画板将被保存。

默认值:false

布尔值。


fxgSaveOptions.textPolicy

FXG 用于保留文本的策略。

默认值:TextPreservePolicy.AUTOMATICALLYCONVERTTEXT

TextPreservePolicy


fxgSaveOptions.version

要创建的 FXG 文件格式的版本。默认值为 FXGVersion.VERSION2PT0

FXGVersion