How to Draw Lines
Posted: Thu Aug 17, 2023 8:06 am
I want to draw 2 lines using the following code。
But I don't know how to obtain the pixel value where the (0,0) point is located。
How to obtain the pixel value where the (0,0) point is located, using c++builder???
Code: Select all
int nLeft=Chart->ChartRect.Left;
int nRight=Chart->ChartRect.Right;
int nTop=Chart->ChartRect.Top;
int nBottom=Chart->ChartRect.Bottom;
Chart->Canvas->Pen->Width = 3;
Chart->Canvas->DoHorizLine(nLeft, nRight, 10);
Chart->Canvas->DoVertLine(10, nTop, nBottom);
How to obtain the pixel value where the (0,0) point is located, using c++builder???