i can handle my img.Bitmap that is an png or webp image
now i want to resize that img.Bitmap which is now 400x400 to eg 100x100
how can i do that ?
Thank you
This tutorial explains the differences between the three methods. The bottom line is that the best option is to use LoadBitmapResize and set the container gravity, if possible, to Gravity.CENTER. LoadBitmap - Simply loads the bitmap as-is. Loading unknown bitmap files with LoadBitmap is...
This tutorial explains the differences between the three methods. The bottom line is that the best option is to use LoadBitmapResize and set the container gravity, if possible, to Gravity.CENTER. LoadBitmap - Simply loads the bitmap as-is. Loading unknown bitmap files with LoadBitmap is...
Dim bmp As Bitmap = Base64EncodeDecodeImage.Base64StringToImage(kont)
Dim newW As Int = 100
Dim newH As Int = 100
Dim resized As Bitmap
resized.InitializeMutable(newW, newH)
Dim cvs As Canvas
cvs.Initialize2(resized)
cvs.DrawBitmap(bmp, Null, cvs.TargetRect)
img.Bitmap=resized
Using the canvas, you can resize without going to a file. To be tested.