//繪圖質量var
g: TGPGraphics;
p: TGPPen;
begin
g := TGPGraphics.Create(Canvas.Handle);
p := TGPPen.Create(MakeColor(255,0,0),2);
g.SetSmoothingMode(SmoothingModeHighQuality); {高質量}
g.DrawLine(p,11,11,111,111);
g.SetSmoothingMode(SmoothingModeHighSpeed); {高速度,低質量}
g.DrawLine(p,66,11,222,128);
p.Free;
g.Free;
end;
繪圖質量參數:
SmoothingModeInvalid = -1; {指定一個無效模式}
SmoothingModeDefault = 0; {指定不消除鋸齒}
SmoothingModeHighSpeed = 1; {指定高速度、低質量呈現}
SmoothingModeHighQuality = 2; {指定高質量、低速度呈現}
SmoothingModeNone = 3; {指定不消除鋸齒}
SmoothingModeAntiAlias = 4; {指定消除鋸齒的呈現}