There are
mpoints on the line (set by the user), you need to find a point from which the distance to the rest would be minimal.
How do I display points on the screen in C ++ Builder?
There are
mpoints on the line (set by the user), you need to find a point from which the distance to the rest would be minimal.
How do I display points on the screen in C ++ Builder?
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
You can do this: Form1->Canvas->Pixels[x][y] = clWhite ; /*0xFFFFFF*/ Form1->Canvas->Pixels[x][y] = clWhite ; /*0xFFFFFF*/
void __fastcall TForm1::FormMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y) { //параметры Form1->Canvas->Pen->Color = clBlue; Form1->Canvas->Pen->Width = 5; Form1->Canvas->Brush->Color = clRed; // отрисовка Form1->Canvas->MoveTo(X, Y); // Переходит к координатам Form1->Canvas->LineTo(X, Y); // Рисует точечку } Source: https://ru.stackoverflow.com/questions/568464/
All Articles