mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 13:56:32 +08:00
feat(编辑渲染): 完善三维转换,优化编辑渲染压缩
This commit is contained in:
1 parent
e8344e6387
commit
839f65e3d7
47 files changed
+4887
-112
No files matched your search
@@ -80,6 +80,7 @@ func (c *pdfCompositor) shadingPattern(pattern *pdfgo.ShadingPattern, node pdfCo
|
||||
c.releasePixels(result)
|
||||
return nil, err
|
||||
}
|
||||
defer c.releaseCoverage(coverage)
|
||||
step := 25.4 / c.importer.rasterDPI
|
||||
for i := range result {
|
||||
if i%pdfCompositeTileSize == 0 {
|
||||
@@ -90,7 +91,7 @@ func (c *pdfCompositor) shadingPattern(pattern *pdfgo.ShadingPattern, node pdfCo
|
||||
}
|
||||
shape := 0.0
|
||||
if coverage != nil {
|
||||
_, _, _, a := coverage.At(i%c.width, i/c.width).RGBA()
|
||||
a := imageAlphaAt(coverage, i%c.width, i/c.width)
|
||||
shape = float64(a) / 65535
|
||||
}
|
||||
if nodes[0].image != nil && shape != 0 {
|
||||
|
||||
Reference in new issue
Block a user