delphi 中 采用区域画图,会产生锯齿。如何消除锯齿? (想用区域画法,不用路径画法)
如图所示:
代码如下:
g := TGPGraphics.Create(Canvas.Handle);
g.Clear(aclWhite);
g.SetSmoothingMode(SmoothingModeHighQuality); //指定平滑(抗锯齿)
g.SetInterpolationMode(InterpolationModeHighQuality);
drawPath.AddLine(pPoint1, FpMousePointDraw);
drawPath.AddLine(FpMousePointDraw, pPoint2);
drawPath.AddLine(pPoint2, pPoint1);
Rgn1 := TGPRegion.Create(drawPath);
g.FillRegion(brush,Rgn1);
各位牛人帮帮忙,提点意见。。。想了很久没找到解决办法!!!