v0.0.460
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m16s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m16s
This commit is contained in:
@@ -34,22 +34,22 @@ func (opt *PDFRectOpt) LineWidth(v float64) *PDFRectOpt {
|
||||
}
|
||||
|
||||
func (opt *PDFRectOpt) DrawColor(cr, cg, cb int) *PDFRectOpt {
|
||||
opt.drawColor = &PDFColor{R: cr, G: cg, B: cb}
|
||||
opt.drawColor = langext.Ptr(rgbToColor(cr, cg, cb))
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFRectOpt) DrawColorHex(c uint32) *PDFRectOpt {
|
||||
opt.drawColor = &PDFColor{R: int((c >> 16) & 0xFF), G: int((c >> 8) & 0xFF), B: int((c >> 0) & 0xFF)}
|
||||
opt.drawColor = langext.Ptr(hexToColor(c))
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFRectOpt) FillColor(cr, cg, cb int) *PDFRectOpt {
|
||||
opt.fillColor = &PDFColor{R: cr, G: cg, B: cb}
|
||||
opt.fillColor = langext.Ptr(rgbToColor(cr, cg, cb))
|
||||
return opt
|
||||
}
|
||||
|
||||
func (opt *PDFRectOpt) FillColorHex(c uint32) *PDFRectOpt {
|
||||
opt.fillColor = &PDFColor{R: int((c >> 16) & 0xFF), G: int((c >> 8) & 0xFF), B: int((c >> 0) & 0xFF)}
|
||||
opt.fillColor = langext.Ptr(hexToColor(c))
|
||||
return opt
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user