In TSRichViewEdit:

In TRichViewEdit:

Code: Select all
rgba.a := rgba.a + SrcPixel^.rgbReserved * Weight;
Code: Select all
if Weight > 0 then
rgba.a := rgba.a + SrcPixel^.rgbReserved * Weight;
Code: Select all
procedure ApplyHorizontally32;
var......
begin
.............
if IgnoreAlpha or (TempPixel^.rgbReserved <> 0) then
begin
Weight := WPMatrix[x, i].Weight;
rgba.r := rgba.r + SrcPixel^.rgbRed * Weight;
rgba.g := rgba.g + SrcPixel^.rgbGreen * Weight;
rgba.b := rgba.b + SrcPixel^.rgbBlue * Weight;
// rgba.a := rgba.a + SrcPixel^.rgbReserved * Weight;
if Weight > 0 then
rgba.a := rgba.a + SrcPixel^.rgbReserved * Weight;
end;
.............
end;
Code: Select all
procedure ApplyVertically32;
var...........
begin
..................
if IgnoreAlpha or (TempPixel^.rgbReserved <> 0) then
begin
Weight := WPMatrix[y, i].Weight;
rgba.r := rgba.r + TempPixel^.rgbRed * Weight;
rgba.g := rgba.g + TempPixel^.rgbGreen * Weight;
rgba.b := rgba.b + TempPixel^.rgbBlue * Weight;
if Weight > 0 then
rgba.a := rgba.a + TempPixel^.rgbReserved * Weight;
// rgba.a := rgba.a + TempPixel^.rgbReserved * Weight;
end;
....................
end;