splat icon indicating copy to clipboard operation
splat copied to clipboard

BitmapLoader.Current.Load() doesn't work correct

Open wist214 opened this issue 6 years ago • 1 comments

The height/width parameters don't change anything in the BitmapLoader.Current.Load() function, the size is always remains original. Project: Xamarin Forms, Android

I had to change your lib (Splat.Drawing), and use Bitmap.CreateScaledBitmap() after decoding the stream, because parameters outHeigth and outWidth that you used, didn't work in this situation. In case with IOS everything works fine.

P.S. In case with Cocoa, Tizen platforms, you still provide the ability to set width/height despite the fact that you don't use these parameters at all in your source code, so the size will definitely remain the same.

wist214 avatar Oct 31 '19 15:10 wist214

Sounds good. Given you done the changes already mind providing a PR?

glennawatson avatar Oct 31 '19 16:10 glennawatson