【发布时间】:2016-09-21 21:19:57
【问题描述】:
我正在尝试学习Cimg,但有时文档非常模糊。 我正在玩绘图功能,我想画一条线。函数声明很简单:
CImg<T>& draw_line ( const int x0,
const int y0,
const int x1,
const int y1,
const tc *const color,
const float opacity = 1,
const unsigned int pattern = ~0U,
const bool init_hatch = true
)
在哪里
x0 X-coordinate of the starting line point.
y0 Y-coordinate of the starting line point.
x1 X-coordinate of the ending line point.
y1 Y-coordinate of the ending line point.
color Pointer to spectrum() consecutive values of type T, defining the drawing color.
opacity Drawing opacity.
**pattern An integer whose bits describe the line pattern.**
init_hatch Tells if a reinitialization of the hash state must be done.
我的问题是模式,我无法在文档中找到哪些整数代表哪种线。有谁现在如何操纵模式?
提前谢谢你
【问题讨论】: