mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 21:10:42 +02:00
* 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:
parent
80b15213f0
commit
d643d77da7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user