CImg
CImg copied to clipboard
unsigned integer pattern=~0 drawing pattern
These words appear in numerous places in the Cimg PDF reference document andt is defined as an integer whose bits determine a drawing pattern ... But no where is it specified what happens when bit(n) of this integer set to 1 or 0
The pattern parameter has always the same meaning. It's a 32bits integer (unsigned int) whose bits define the pattern of the drawing.
- If all bits are set to
1, then the line is entirely filled (which corresponds to~0Uor(unsigned int)-1). - For a pattern equal to
0xAAAAAAAA, you have the following binary pattern10101010101010101010101010101010which draws a line where 1 px/2 is set. etc.