mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-03 18:29:35 +01:00
* Patch from Ondrej Pokorny to enable Alpha blending in (stretch)Draw (bug ID 34266)
git-svn-id: trunk@39748 -
This commit is contained in:
parent
a84554ef9f
commit
e1b5f21b01
@ -784,7 +784,7 @@ begin
|
||||
begin
|
||||
xx := r - x;
|
||||
for t := yi to ym do
|
||||
colors [r,t] := image.colors[xx,t-y];
|
||||
colors [r,t] := AlphaBlend(colors [r,t], image.colors[xx,t-y]);
|
||||
end;
|
||||
end;
|
||||
|
||||
|
||||
@ -223,7 +223,7 @@ begin
|
||||
NewCol.blue:=Min(NewCol.blue+round(Col.blue*f),$ffff);
|
||||
NewCol.alpha:=Min(NewCol.alpha+round(Col.alpha*f),$ffff);
|
||||
end;
|
||||
Canvas.Colors[x+dx,y+dy]:=NewCol;
|
||||
Canvas.Colors[x+dx,y+dy]:=AlphaBlend(Canvas.Colors[x+dx,y+dy], NewCol);
|
||||
end;
|
||||
end;
|
||||
finally
|
||||
|
||||
Loading…
Reference in New Issue
Block a user