Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to draw a dotted line [c++]

Hello all,

I am new here, i would like to ask you is there a way to change the color of the dotted line which i have created below. LineIterator do not take the color argument... I prefer to use yellow instead a defined blue. Thanks in advance for help.

LineIterator line(img, p1, p2, 8);           
for(int i = 0; i < line.count; i++,line++)
    if ( i%5!=0 ) {(*line)[0] = 200;}