mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
95dea33a95
commit
056d7c3979
6 files changed
+22
-9
No files matched your search
+4
-1
@@ -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"}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user