H hdqself Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-12 #1 我在Image组件上进行绘图,我想点button按钮时,将绘图轨迹清除,应该怎么实现啊 能具体说下吗?
M myid0602 Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-12 #2 绘图前设置 Image1->Canvas->Pen->mode=pmNotXor; 绘图 Image1->Canvas->MoveTo(0, 0); Image1->Canvas->LineTo(X, Y); 在相同位置重画即可清除 Image1->Canvas->MoveTo(0, 0); Image1->Canvas->LineTo(X, Y);
绘图前设置 Image1->Canvas->Pen->mode=pmNotXor; 绘图 Image1->Canvas->MoveTo(0, 0); Image1->Canvas->LineTo(X, Y); 在相同位置重画即可清除 Image1->Canvas->MoveTo(0, 0); Image1->Canvas->LineTo(X, Y);
L lqcros Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-12 #3 晕,大富翁里面讨论这个问题很久了 在绘图之前先保存一个临时的TBitmap 然后在绘图时,先绘TBitmap到Image1,再绘图 要清除时,就只绘TBitmap到Image1
H hdqself2008 Unregistered / Unconfirmed GUEST, unregistred user! 2006-05-16 #4 Image1->Canvas->FillRect(Rect(Left,Top,Right,Button));