Resizing an Image without losing any quality [closed]

As rcar says, you can’t without losing some quality, the best you can do in c# is: Bitmap newImage = new Bitmap(newWidth, newHeight); using (Graphics gr = Graphics.FromImage(newImage)) { gr.SmoothingMode = SmoothingMode.HighQuality; gr.InterpolationMode = InterpolationMode.HighQualityBicubic; gr.PixelOffsetMode = PixelOffsetMode.HighQuality; gr.DrawImage(srcImage, new Rectangle(0, 0, newWidth, newHeight)); }

How to scale an Image in ImageView to keep the aspect ratio

Yes, by default Android will scale your image down to fit the ImageView, maintaining the aspect ratio. However, make sure you’re setting the image to the ImageView using android:src=”…” rather than android:background=”…”. src= makes it scale the image maintaining aspect ratio, but background= makes it scale and distort the image to make it fit exactly … Read more