AAleksandr Khylobokyirect with transparency
22700d99创建于 2021年6月17日历史提交
package gopdf

type PaintStyle string

const (
	DrawPaintStyle     PaintStyle = "S"
	FillPaintStyle     PaintStyle = "f"
	DrawFillPaintStyle PaintStyle = "B"
)

func parseStyle(style string) PaintStyle {
	op := DrawPaintStyle
	if style == "F" {
		op = FillPaintStyle
	} else if style == "FD" || style == "DF" {
		op = DrawFillPaintStyle
	}

	return op
}