S siking Unregistered / Unconfirmed GUEST, unregistred user! 2007-12-21 #2 Image1.Picture.Graphic:=nil;
G guanyue7613 Unregistered / Unconfirmed GUEST, unregistred user! 2007-12-21 #4 if a bmp format picture, use this: Transparent := true
小 小雨哥 Unregistered / Unconfirmed GUEST, unregistred user! 2007-12-25 #5 呵呵,如下即可: procedure ClearImageGraphic(Img:TImage); var OldRes:Boolean; begin if Assigned(Img) then begin OldRes:= Img.Transparent; try Img.Picture.Graphic:=nil; Img.Transparent:=True; Img.Refresh; finally Img.Transparent:=OldRes; end; end; end;
呵呵,如下即可: procedure ClearImageGraphic(Img:TImage); var OldRes:Boolean; begin if Assigned(Img) then begin OldRes:= Img.Transparent; try Img.Picture.Graphic:=nil; Img.Transparent:=True; Img.Refresh; finally Img.Transparent:=OldRes; end; end; end;