feat(文件拆分): 拆分字体图像基础能力
build.yaml / build (push) Successful in 49s

This commit is contained in:
xiaoqidun committed 2026-10-14 00:12:00 +08:00
1 parent ee3fd02a0a
commit 64f9ec4241
87 files changed
+2693 -2289

No files matched your search

+2 -1
View File
@@ -25,6 +25,7 @@ import (
"strconv"
"unicode/utf8"
baseimage "github.com/xiaoqidun/ofdgo/internal/base/image"
"github.com/xiaoqidun/pdfgo"
)
@@ -77,7 +78,7 @@ func (s *pdfStencilImage) NRGBA64At(x, y int) color.NRGBA64 {
if !image.Pt(x, y).In(s.Bounds()) {
return color.NRGBA64{}
}
gray := imageNRGBA64At(s.source, x, y)
gray := baseimage.NRGBA64At(s.source, x, y)
pixel := s.fill
pixel.A = uint16(65535 - gray.R)
return pixel