//筆對齊
畫筆對齊方式:
var
g: TGPGraphics;
p: TGPPen;
sb: TGPSolidBrush;
rect: TGPRect;
begin
g := TGPGraphics.Create(Canvas.Handle);
p := TGPPen.Create(MakeColor(255,255,0,0),5);
sb := TGPSolidBrush.Create(MakeColor(255,255,255,0));
p.SetAlignment(PenAlignmentCenter); {默認}
rect := MakeRect(22,22,222,111);
g.DrawEllipse(p, rect);
g.FillEllipse(sb, rect);
p.SetAlignment(PenAlignmentInset);
rect := MakeRect(22,111,222,111);
g.DrawEllipse(p, rect);
g.FillEllipse(sb, rect);
sb.Free;
p.Free;
g.Free;
end;