Home > Back-end >  Questions about c # based on point coordinates painting line
Questions about c # based on point coordinates painting line

Time:11-09

The building surveying and mapping professional a student, I am now in use of c # form program make a calculation of the azimuth Angle, I want to achieve after input coordinates can be in control, and the attachment are drawn, the two points I was using a picturebox control, but found that the coordinate values beyond a certain size is not shown in the controls, could you tell me how to solve this problem, the great god told about

CodePudding user response:

Although has nothing to do with Delphi, the method can be reference: painting area is enough big, can display inside the scroll box

CodePudding user response:

reference 1/f, play big shoot early nuclear response:
, although has nothing to do with Delphi method can refer to: painting area is enough big, can display on the scroll boxes inside the

Well, I sent the wrong area , the great god can tell the scroll box how to add

CodePudding user response:

1, draw a line segment
 
Private void button1_Click (object sender, EventArgs e)
{
//create a canvas
Graphics g=this. PictureBox1. CreateGraphics ();
//from the canvas (0, 0) - & gt; To (100100) to draw a black line
G.D rawLine (new Pen (Color Black), new Point (0, 0), new Point (100100));
}


How to display the scroll bar 2, form
AutoScroll attribute of the form that can be set to true when the picturebox size exceeds the form size, the scroll bar will appear automatically,
  • Related