feat(转换能力): 完善渐变转换与图像复用
build.yaml / build (push) Successful in 44s

This commit is contained in:
xiaoqidun committed 2026-09-28 17:52:00 +08:00
1 parent 95dea33a95
commit 056d7c3979
6 files changed
+22 -9

No files matched your search

+4 -1
View File
@@ -522,7 +522,10 @@ func (p *pdfImporter) maskClip(mask *pdfgo.SoftMask) (pdfgo.Path, error) {
return pdfgo.Path{}, err
}
opacity := func(v float64) (bool, error) {
v = mask.Transfer(v)
v, err := mask.Transfer(v)
if err != nil {
return false, err
}
if v != 0 && v != 1 {
return false, &pdfgo.UnsupportedError{Feature: "nonbinary luminosity mask"}
}