谁知道怎么在程序中修改Rave中Rectangle的颜色
谁知道怎么在程序中修改Rave中Rectangle的颜色? varg: TGPGraphics;
p: TGPPen;
sb: TGPSolidBrush;
begin
g := TGPGraphics.Create(Canvas.Handle);
sb := TGPSolidBrush.Create(MakeColor(255,255,255));
p := TGPPen.Create(MakeColor(255,0,0),6);
g.FillRectangle(sb, 0, 0, Self.ClientWidth, Self.ClientHeight); {填充窗体矩形}
g.DrawRectangle(p,11,11,111,111); {矩形描边}
sb.SetColor(MakeColor(255,255,0));
g.FillRectangle(sb,11,11,111,111); {填充矩形}
p.Free;
sb.Free;
g.Free;
end; aminghanhua 发表于 2012-5-15 14:13 static/image/common/back.gif
var
g: TGPGraphics;
p: TGPPen;
谢喽~~~我去试试~~
不过。。。。怎么给币{:2_28:}
aminghanhua 发表于 2012-5-15 14:13 static/image/common/back.gif
var
g: TGPGraphics;
p: TGPPen;
GDI+。。。。。。。。。。。 不会用GDI+啊 其实很简单~~定义个TRaveRectangle型变量就OK了。。 感觉怎么后面听不懂呢
页:
[1]