I'm capturing a small portion of the screen using the following code:
I need to save the image in a larger size, but without losing quality. When I resize the bitmap, the image becomes pixelated or blurry. Is there a way to upscale the image with better quality or apply some kind of smoothing or interpolation?
Thanks in advance.
B4X:
Dim Bitmap1 As B4XBitmap = Capture(100, 100, 100, 100)
Bitmap1 = Bitmap1.Resize(Bitmap1.Width*4, Bitmap1.Height*4, True)
Dim Out As OutputStream
Out = File.OpenOutput("C:\MEAPAGUE", "Test.png", False)
Bitmap1.WriteToStream(Out, 100, "PNG")
Out.Close
Thanks in advance.