Re: Free Hand Drawing

"Rory Daulton" <[email protected]> Tue, 12 Aug 2003 23:01:55 -0400
Newsgroups gmane.comp.lang.delphi.programming
Message-ID <001b01c36147$40f3d600$6401a8c0@laptop>
Jorge,

> Can anyone tell me or have example code of how to do freehand drawing
> on TCanvas?  I understand the methods for line, ellipse, and rectangle
> drawing, but I'd like to be able to draw and ellipse freehand.

I believe the usual method for an ellipse is to draw the "bounding
rectangle" (the horizontal rectangle that circumscribes the ellipse) as well
as the ellipse inside it.  The user drags and draws the rectangle, with the
ellipse following along.  When the user ends the drag, the ellipse is
finalized so the rectangle disappears.

Rory Daulton
[email protected]


---
[This E-mail scanned for viruses by Declude Virus and Nmax "Your MAXimum Connection!"]
[This E-mail scanned for spam by Declude JunkMail and Nmax "Your MAXimum Connection!"] 


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/i7folB/TM
---------------------------------------------------------------------~->

CodeCoffer - new Delphi code protection Tool!
http://www.delphicollection.com/public/CodeCoffer.htm
---------------------------------------------------------------
Unsubscribe:[email protected]
List owner:[email protected]
--------------------------------------------------------------- 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/