mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-30 01:27:26 +08:00
feat(编辑渲染): 完善三维转换,优化编辑渲染压缩
This commit is contained in:
1 parent
e8344e6387
commit
839f65e3d7
47 files changed
+4887
-112
No files matched your search
@@ -109,6 +109,7 @@ func (c *pdfCompositor) drawPaint(node pdfCompositeNode, outline bool, paint pdf
|
||||
if err != nil || coverage == nil {
|
||||
return err
|
||||
}
|
||||
defer c.releaseCoverage(coverage)
|
||||
style, _, _ := node.style()
|
||||
var transfer *pdfgo.TransferFunction
|
||||
imageShape := false
|
||||
@@ -198,7 +199,7 @@ func (c *pdfCompositor) drawPaint(node pdfCompositeNode, outline bool, paint pdf
|
||||
return err
|
||||
}
|
||||
for x := region.Min.X; x < region.Max.X; x++ {
|
||||
_, _, _, a := coverage.At(x, y).RGBA()
|
||||
a := imageAlphaAt(coverage, x, y)
|
||||
if a == 0 {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user