implement SetLineDash for draw2dpdf

This commit is contained in:
Stani 2015-07-11 18:58:28 +02:00
parent a43544c31d
commit 99f1fece69
1 changed files with 6 additions and 0 deletions

View File

@ -261,6 +261,12 @@ func (gc *GraphicContext) SetFontSize(fontSize float64) {
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
func (gc *GraphicContext) SetLineWidth(LineWidth float64) {
gc.StackGraphicContext.SetLineWidth(LineWidth)