0
Cimg을 배우려고하지만 문서가 매우 모호합니다. 드로잉 기능을 사용하고 있는데 선을 그립니다. functoon 선언은 매우 간단합니다 :CIMG를 사용하여 CIMG를 사용하여 라인 패턴을 설정
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.
내 질문이 패턴입니다
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
)
, 나는 정수 라인의 종류를 나타내는 문서에서 찾을 수 없어. 이제 패턴을 조작하는 사람이 있습니까?
나는 같은 질문을 가지고 사람을 위해 여기에 게시, 개발자의