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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help needed - refreshing an image

Status
Not open for further replies.

mike9606

Programmer
May 24, 2000
8
US
I've got a line object displayed on the screen with an array of tpoint holding the line information along with a width and colour variable<br><br>how do i refresh the image when changing the line width so that the old image dissapears and the new image is displayed?
 
Hi!<br>The simplest way is to redraw all image<br>(clear image and draw in series all pictures,lines etc).<br>Another way is use two images- first is background image<br>where lie picture wich can`t be modified (You can only draw to this image), second image is lie above the first and have<br>property Transparent set to True. On the second image You modify line (Width, Color, Path) and then (wen user click some special button) place this line to background picture.<br>in this case You dont need to redraw all lines.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top