TLazBmpReader now keeps colors when reading TransparentColor

git-svn-id: trunk@9338 -
This commit is contained in:
mattias 2006-05-22 20:38:01 +00:00
parent 974c61c74f
commit 8f5df562b7

View File

@ -3097,10 +3097,9 @@ end;
function TLazReaderBMP.ColorToTrans(const InColor: TFPColor): TFPColor;
begin
//DebugLn('TLazReaderBMP.ColorToTrans InColor=',dbgs(InColor),' FTransparentColor=',dbgs(FTransparentColor));
if (InColor <> FTransparentColor) then
Result := InColor
else
Result := FPImage.colTransparent;
Result := InColor;
if (InColor = FTransparentColor) then
Result.alpha := alphaTransparent;
end;
procedure TLazReaderBMP.SetupRead(nPalette, nRowBits: Integer; Stream: TStream;
@ -3582,4 +3581,4 @@ end;
initialization
InternalInit;
end.
end.