Skip to content

Commit

Permalink
replace bitmap.sameAs() by bitmap.equals()
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeus64 committed Nov 23, 2018
1 parent 276497f commit a3ffbf0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions source/ALGraphics.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2568,7 +2568,7 @@ function ALFitIntoAndCropImageV2(const aStream: TCustomMemoryStream; const aGetD
result := TJBitmap.JavaClass.createBitmap(aBitmap{src}, aSrcRect.Left{X}, aSrcRect.top{Y}, aSrcRect.width{Width}, aSrcRect.height{height}, aMatrix{m}, True{filter});
aMatrix := nil;
finally
if not aBitmap.sameAs(result) then aBitmap.recycle;
if not aBitmap.equals(result) then aBitmap.recycle;
aBitmap := nil;
end;
finally
Expand Down Expand Up @@ -2708,7 +2708,7 @@ function ALFitIntoAndCropImageV2(const aStream: TCustomMemoryStream; const W, H:
result := TJBitmap.JavaClass.createBitmap(aBitmap{src}, aSrcRect.Left{X}, aSrcRect.top{Y}, aSrcRect.width{Width}, aSrcRect.height{height}, aMatrix{m}, True{filter});
aMatrix := nil;
finally
if not aBitmap.sameAs(result) then aBitmap.recycle;
if not aBitmap.equals(result) then aBitmap.recycle;
aBitmap := nil;
end;
finally
Expand Down Expand Up @@ -3246,7 +3246,7 @@ function ALBlurFitIntoAndCropImageV2(const aStream: TCustomMemoryStream; const a
aRS := nil;

finally
if not aBitmap.sameAs(result) then aBitmap.recycle;
if not aBitmap.equals(result) then aBitmap.recycle;
aBitmap := nil;
end;
finally
Expand Down Expand Up @@ -3439,7 +3439,7 @@ function ALBlurFitIntoAndCropImageV2(const aStream: TCustomMemoryStream; const W
aRS := nil;

finally
if not aBitmap.sameAs(result) then aBitmap.recycle;
if not aBitmap.equals(result) then aBitmap.recycle;
aBitmap := nil;
end;
finally
Expand Down Expand Up @@ -4116,7 +4116,7 @@ function ALPlaceIntoAndCropImageV2(const aStream: TCustomMemoryStream; const aGe
result := TJBitmap.JavaClass.createBitmap(aBitmap{src}, aSrcRect.Left{X}, aSrcRect.top{Y}, aSrcRect.width{Width}, aSrcRect.height{height}, aMatrix{m}, True{filter});
aMatrix := nil;
finally
if not aBitmap.sameAs(result) then aBitmap.recycle;
if not aBitmap.equals(result) then aBitmap.recycle;
aBitmap := nil;
end;
finally
Expand Down Expand Up @@ -4267,7 +4267,7 @@ function ALPlaceIntoAndCropImageV2(const aStream: TCustomMemoryStream; W, H: sin
result := TJBitmap.JavaClass.createBitmap(aBitmap{src}, aSrcRect.Left{X}, aSrcRect.top{Y}, aSrcRect.width{Width}, aSrcRect.height{height}, aMatrix{m}, True{filter});
aMatrix := nil;
finally
if not aBitmap.sameAs(result) then aBitmap.recycle;
if not aBitmap.equals(result) then aBitmap.recycle;
aBitmap := nil;
end;
finally
Expand Down Expand Up @@ -4949,7 +4949,7 @@ function ALFitIntoImageV2(const aStream: TCustomMemoryStream; const aGetDestSize
result := TJBitmap.JavaClass.createBitmap(aBitmap{src}, round(aSrcRect.Left){X}, round(aSrcRect.top){Y}, round(aSrcRect.width){Width}, round(aSrcRect.height){height}, aMatrix{m}, True{filter});
aMatrix := nil;
finally
if not aBitmap.sameAs(result) then aBitmap.recycle;
if not aBitmap.equals(result) then aBitmap.recycle;
aBitmap := nil;
end;
finally
Expand Down Expand Up @@ -5090,7 +5090,7 @@ function ALFitIntoImageV2(const aStream: TCustomMemoryStream; const W, H: single
result := TJBitmap.JavaClass.createBitmap(aBitmap{src}, round(aSrcRect.Left){X}, round(aSrcRect.top){Y}, round(aSrcRect.width){Width}, round(aSrcRect.height){height}, aMatrix{m}, True{filter});
aMatrix := nil;
finally
if not aBitmap.sameAs(result) then aBitmap.recycle;
if not aBitmap.equals(result) then aBitmap.recycle;
aBitmap := nil;
end;
finally
Expand Down Expand Up @@ -5659,7 +5659,7 @@ function ALStretchImageV2(const aStream: TCustomMemoryStream; const aGetDestSize
result := TJBitmap.JavaClass.createBitmap(aBitmap{src}, round(aSrcRect.Left){X}, round(aSrcRect.top){Y}, round(aSrcRect.width){Width}, round(aSrcRect.height){height}, aMatrix{m}, True{filter});
aMatrix := nil;
finally
if not aBitmap.sameAs(result) then aBitmap.recycle;
if not aBitmap.equals(result) then aBitmap.recycle;
aBitmap := nil;
end;
finally
Expand Down Expand Up @@ -5796,7 +5796,7 @@ function ALStretchImageV2(const aStream: TCustomMemoryStream; const W, H: single
result := TJBitmap.JavaClass.createBitmap(aBitmap{src}, round(aSrcRect.Left){X}, round(aSrcRect.top){Y}, round(aSrcRect.width){Width}, round(aSrcRect.height){height}, aMatrix{m}, True{filter});
aMatrix := nil;
finally
if not aBitmap.sameAs(result) then aBitmap.recycle;
if not aBitmap.equals(result) then aBitmap.recycle;
aBitmap := nil;
end;
finally
Expand Down Expand Up @@ -6281,7 +6281,7 @@ function ALLoadNormalizeOrientationImageV2(const aStream: TCustomMemoryStream;
try
result := ALNormalizeImageOrientationV2(aBitmap, aExifOrientationInfo);
finally
if not aBitmap.sameAs(result) then aBitmap.recycle;
if not aBitmap.equals(result) then aBitmap.recycle;
aBitmap := nil;
end;
finally
Expand Down

0 comments on commit a3ffbf0

Please sign in to comment.