implement SetLineDash for draw2dpdf
This commit is contained in:
parent
a43544c31d
commit
99f1fece69
1 changed files with 6 additions and 0 deletions
|
@ -261,6 +261,12 @@ func (gc *GraphicContext) SetFontSize(fontSize float64) {
|
||||||
gc.pdf.SetFontSize(fontSize * gc.Current.Scale)
|
gc.pdf.SetFontSize(fontSize * gc.Current.Scale)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetLineDash sets the line dash pattern
|
||||||
|
func (gc *GraphicContext) SetLineDash(Dash []float64, DashOffset float64) {
|
||||||
|
gc.StackGraphicContext.SetLineDash(Dash, DashOffset)
|
||||||
|
gc.pdf.SetDashPattern(Dash, DashOffset)
|
||||||
|
}
|
||||||
|
|
||||||
// SetLineWidth sets the line width
|
// SetLineWidth sets the line width
|
||||||
func (gc *GraphicContext) SetLineWidth(LineWidth float64) {
|
func (gc *GraphicContext) SetLineWidth(LineWidth float64) {
|
||||||
gc.StackGraphicContext.SetLineWidth(LineWidth)
|
gc.StackGraphicContext.SetLineWidth(LineWidth)
|
||||||
|
|
Loading…
Reference in a new issue