Hello, I need to draw rectangle with dashed line. is there any ways to do this using function available in juce? I tried so many things but didn't succeded yet. pelase help me out.
I found the solution for this.
juce::Path path;
path.addRectangle(Rectangle you want to draw);
juce::PathStrokeType pathStrokType(1.0);
float dashedLengh[2];
dashedLengh[0]=4;
dashedLengh[1]=4;
pathStrokType.createDashedStroke(path, path, dashedLengh, 2);
g.strokePath(path, pathStrokType);
I think we should have to add dashed Line functions into the JUCE.
Thanking you.
1 Like
