I have been trying for a couple days now, and i hope someone can help.
What i have is a graphicspath, which is a rectangle, and inside this rectangle i draw 10 smaller rectangles again each its own graphicspath, that i need to rotate along with the bigger rectangle. I have been able to get the rectangle to rotate 90 degrees and then recreate all the smaller rectangles perfectly fine, but what i really need to do is rotate them all by any angle say 27 degrees or 108 degrees.
To do the rotation i have been using the Matrix RotateAt method, the bigger rectangle rotates on the center point of the bounding rectangle, the smaller rectangles rotate at pathpoints(0).
image A shows current state before rotation
image B shows what i am currently getting after rotation (rotated 45 degrees)
image C shows what i need to get too after rotation.
I just cannot seem to see what i need to do in my head.
I have been using VB and C#.Net for years, just never any GDI.
Hope this makes sense, any help would be greatly appreciated.