Drawing
-
hi I want to draw a perpendicular line from another line.How can it be implemented in VC++(GDI). thanks :^)
-
hi I want to draw a perpendicular line from another line.How can it be implemented in VC++(GDI). thanks :^)
Have you looked at
MoveTo()
,LineTo()
, et al?"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
-
hi I want to draw a perpendicular line from another line.How can it be implemented in VC++(GDI). thanks :^)
Use analytic geometry this is easy to solve. A line can be defined by two points. You want another line that passes through a point and form a right angle with the first line. After you find the second line use GDI functions
MoveTo()
andLineTo()
to draw the second line.