我的代码: ImgD:=TGPImage.Create;
grp:=TGPGraphics.Create(ImgD);
brush:=TGPBrush.Create;
但在这里我没有找到任何设置brush的颜色的方法?
grp.FillRectangle(brush,0,0,200,200);
grp:=TGPGraphics.Create(ImgD);
brush:=TGPBrush.Create;
但在这里我没有找到任何设置brush的颜色的方法?
grp.FillRectangle(brush,0,0,200,200);
.Canvas.Pen.Color
var
Graphics : TGPGraphics;
SolidBrush: TGPSolidBrush;
begin
Graphics := TGPGraphics.Create(Canvas.Handle); SolidBrush := TGPSolidBrush.Create(MakeColor(255, 255, 0, 0));
Graphics.FillRectangle(SolidBrush, 0, 0, 100, 60); SolidBrush.Free;
Graphics.Free;
end;
再次感谢老冯同志啊。