如何在C++ Builder里画线
1个回答
展开全部
void __fastcall TForm1::Image1MouseMove(TObject *Sender, TShiftState Shift,
int X, int Y)
{
if(!EditPictureNum)
{
return;
}
if(Shift.Contains(ssLeft))
{
TPenStyle penstyle = Image1-> Canvas-> Pen-> Style;
TPenMode penmode = Image1-> Canvas-> Pen-> Mode;
Image1-> Canvas-> Pen-> Style = psDot ;
Image1-> Canvas-> Pen-> Mode = pmXor ;
int X, int Y)
{
if(!EditPictureNum)
{
return;
}
if(Shift.Contains(ssLeft))
{
TPenStyle penstyle = Image1-> Canvas-> Pen-> Style;
TPenMode penmode = Image1-> Canvas-> Pen-> Mode;
Image1-> Canvas-> Pen-> Style = psDot ;
Image1-> Canvas-> Pen-> Mode = pmXor ;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询