Skip to content

Commit 332c3b3

Browse files
committed
Update simba.image.pas
1 parent 2960137 commit 332c3b3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Source/simba.image.pas

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,6 @@ function TSimbaImage.Blend(Points: TPointArray; Radius: Integer): TSimbaImage;
14521452
Result := Blend(Points, Radius, []);
14531453
end;
14541454

1455-
14561455
function TSimbaImage.Blend(Points: TPointArray; Radius: Integer; IgnorePoints: TPointArray): TSimbaImage;
14571456
var
14581457
P: TPoint;
@@ -1487,8 +1486,6 @@ function TSimbaImage.Blend(Points: TPointArray; Radius: Integer; IgnorePoints: T
14871486
if Skip[Y * FWidth + X] then
14881487
Continue;
14891488
BGRA := FData[Y * FWidth + X];
1490-
if (BGRA.A = ALPHA_OPAQUE) then
1491-
Continue;
14921489

14931490
Inc(R, BGRA.R);
14941491
Inc(G, BGRA.G);
@@ -1502,13 +1499,13 @@ function TSimbaImage.Blend(Points: TPointArray; Radius: Integer; IgnorePoints: T
15021499
BGRA.R := R div Count;
15031500
BGRA.G := G div Count;
15041501
BGRA.B := B div Count;
1502+
BGRA.A := ALPHA_OPAQUE;
15051503

15061504
Result.FData[P.Y * FWidth + P.X] := BGRA;
15071505
end;
15081506
end;
15091507
end;
15101508

1511-
15121509
function TSimbaImage.Downsample(Scale: Integer): TSimbaImage;
15131510
begin
15141511
Result := SimbaImage_Downsample(Self, Scale);

0 commit comments

Comments
 (0)