Skip to content

Commit 04ed228

Browse files
Modified the fix
1 parent c6d8cbb commit 04ed228

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Graphics/src/Graphics/Platforms/Android/PlatformBitmapExportContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public PlatformBitmapExportContext(int width, int height, float displayScale = 1
3737

3838
public PlatformImage PlatformImage => new PlatformImage(Bitmap);
3939

40-
public Bitmap Bitmap => _disposeBitmap ? _bitmap.Copy(_bitmap.GetConfig(), false) : _bitmap;
40+
public Bitmap Bitmap => _bitmap;
4141

4242
public override void Dispose()
4343
{

src/Graphics/src/Graphics/Platforms/Android/PlatformImage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public IImage Downsize(float maxWidth, float maxHeight, bool disposeOriginal = f
3333

3434
public IImage Resize(float width, float height, ResizeMode resizeMode = ResizeMode.Fit, bool disposeOriginal = false)
3535
{
36-
using (var context = new PlatformBitmapExportContext(width: (int)width, height: (int)height, disposeBitmap: disposeOriginal))
36+
using (var context = new PlatformBitmapExportContext(width: (int)width, height: (int)height, disposeBitmap: false))
3737
{
3838
var fx = width / Width;
3939
var fy = height / Height;

0 commit comments

Comments
 (0)