* when setting image transparency also set graphic.transparent in case of a bitmap. This fixes #9634 and avoids the need for setting bitmap transparency manually. Setting btimap transparency afterwards is still possible

git-svn-id: trunk@12515 -
This commit is contained in:
marc 2007-10-18 23:00:02 +00:00
parent 80b15213f0
commit d643d77da7

View File

@ -122,10 +122,14 @@ begin
end;
procedure TCustomImage.SetTransparent(Value : Boolean);
begin
if FTransparent=Value then exit;
FTransparent := Value;
PictureChanged(Self);
if (FPicture.Graphic is TBitmap)
and (FPicture.Graphic.Transparent <> FTransparent)
then FPicture.Graphic.Transparent := FTransparent
else PictureChanged(Self);
end;
procedure TCustomImage.SetCenter(Value : Boolean);