Home > Back-end >  Everyone a great god, and how to use a mouse events can draw a drawing of the oval
Everyone a great god, and how to use a mouse events can draw a drawing of the oval

Time:09-27

The subject as above, turn attack...

CodePudding user response:

Recommend a blog have you want to accomplish draw ellipse:

Delphi under the GDI + programming [9] draw ellipse - DrawEllipse

Need to reference unit reference
Delphi under the GDI + programming [1] the preparation

CodePudding user response:

CodePudding user response:

Upstairs, can only show, can't do precise drawing,

Draw the ellipse need three values, it is suggested that the mouse to determine the center position, again by inputting a, b value,

Or by mouse take the ellipse's four points: points around the X axis, Y axis point up and down, again by DrawEllipse (p, X, Y, w, h); Draw the ellipse,

CodePudding user response:

reference lyhoo163 reply: 3/f
upstairs, can only show, can't do precise drawing,

Draw the ellipse need three values, it is suggested that the mouse to determine the center position, again by inputting a, b value,

Or by mouse take the ellipse's four points: points around the X axis, Y axis point up and down, again by DrawEllipse (p, X, Y, w, h); Draw the ellipse,

Just make a reference, but also need to carefully study the building Lord himself,
  • Related