Click here to Skip to main content
16,004,678 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All
Here I draw 5*5 circle with another utility with hatching.Though I am getting following hatch points from its .svg file.

C#
"M 262.70305,372.89158 l0,130.3698 M 32.89905,23.85111 0,-178.07202 
M 32.89905,-7.52372 0,193.11946 M 32.89905,-3.73002 0,-185.65941 
M 32.89905,16.98028 0,151.69884 M 32.89904,-49.00192 0,-53.695 
M 4.23028,26.8475 
C 0,53.65052 -43.49234,97.14286 -97.14286,97.14286 -53.65052,0 -97.14286,-43.49234 -97.14286,-97.14286 0,-53.65052 43.49234,-97.14286 97.14286,-97.14286 53.65052,0 97.14286,43.49234 97.14286,97.14286 Z" 


M=MoveTo
C=CurveTo
Z=CloseCircle


Now I try to do same this in C# with following code:

C#
HatchBrush hBrush = new HatchBrush(
   HatchStyle.Horizontal,
   Color.Red,
   Color.FromArgb(255, 128, 255, 255));
e.Graphics.FillEllipse(hBrush, 0, 0, 5, 5);


Please Let me know how to get above point from Graphics ?
or
Please Suggest any other way to get this points.
Or
Is it any possibility to take HatchBrush points from Graphics or GraphicsPath?

Thanks,
Posted
Updated 5-Feb-12 20:36pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900