mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
1 parent
64f9ec4241
commit
0be872691d
76 files changed
+1926
-1307
No files matched your search
@@ -16,6 +16,7 @@ package ofdgo
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
basegeom "github.com/xiaoqidun/ofdgo/internal/base/geom"
|
||||
"image"
|
||||
"image/color"
|
||||
"image/draw"
|
||||
@@ -165,7 +166,7 @@ func (b CanvasBackend) renderImage(page *RasterPage, img *image.RGBA) (image.Ima
|
||||
m := cmd.Transform
|
||||
if cmd.Stroke != nil {
|
||||
options := *cmd.Stroke
|
||||
if err := validateStroke(options); err != nil {
|
||||
if err := basegeom.ValidateStroke(options); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
p = p.Transform(canvas.Matrix{{m[0], m[2], m[4]}, {m[1], m[3], m[5]}})
|
||||
|
||||
Reference in new issue
Block a user