Answer the question
In order to leave comments, you need to log in
How to implement the shape intersection algorithm?
In a nutshell, there are three kinds of shapes (circle, triangle, rectangle), you need an algorithm to check if the shapes intersect.
public override void Draw(Graphics e)
{
e.DrawRectangle(new Pen(Color.Black), point.X, point.Y, 100, 50);
}
Answer the question
In order to leave comments, you need to log in
Alternatively, you can check the color of the pixel for the edges of the matched figure https://docs.microsoft.com/ru-ru/dotnet/api/system... I
also saw the solution of creating a two-dimensional array and checking in this way (type 0 is not filled in 1 is painted over) .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question