Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SEKTCH

Status
Not open for further replies.

gmie

Programmer
Sep 6, 2001
29
0
0
MY
Hello all..

How to draw line on TImage(not just stright line). We can use mouse to draw/sketch line on it.

Please help me on this.
 
First, use TPaintBox.

I think you'll have to create an "offline" area to draw on, and then paint the offline on the "Onlinearea".
(E.g. Doublebuffered)

Or you can save the actual mousepositions everytime the mousepointer moves in the Image (Usine event OnMouseMove), and draw them out in the Paint-event. Then you can implement "Undo" very easy.

But I don't recommend this solutions if you are going to draw compex images Andreas Nordlund
Software developer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top