X
xebaobei
Unregistered / Unconfirmed
GUEST, unregistred user!
var
temps:tbitmap;
begin
//初始化位图
temps:=tbitmap.Create;
temps.canvas.Brush.Style:=bsClear;{字体模式}
temps.LoadFromFile(funs.pdir+'spicon/select.bmp');
temps.TransparentColor:=temps.Canvas.Pixels[20,20];
temps.Transparent:=true;
form1.Canvas.CopyRect(form1.Canvas.ClipRect,temps.Canvas,temps.Canvas.ClipRect);
end;
temps.Canvas.Pixels[20,20];的颜色我确认是我要透明的颜色
但是我画上后说什么他也不是透明的!
求各位哥哥!
temps:tbitmap;
begin
//初始化位图
temps:=tbitmap.Create;
temps.canvas.Brush.Style:=bsClear;{字体模式}
temps.LoadFromFile(funs.pdir+'spicon/select.bmp');
temps.TransparentColor:=temps.Canvas.Pixels[20,20];
temps.Transparent:=true;
form1.Canvas.CopyRect(form1.Canvas.ClipRect,temps.Canvas,temps.Canvas.ClipRect);
end;
temps.Canvas.Pixels[20,20];的颜色我确认是我要透明的颜色
但是我画上后说什么他也不是透明的!
求各位哥哥!