Hi.
I am trying to increase the height of a bitmap, but without distorting the image. It's like a white border above and below.
I want to transform this:
In that:
What I have achieved so far generates a black bitmap ...
My code:
I am trying to increase the height of a bitmap, but without distorting the image. It's like a white border above and below.
I want to transform this:
In that:
What I have achieved so far generates a black bitmap ...
My code:
B4X:
Sub AumentarImagem(bmp1 As B4XBitmap) As B4XBitmap
Dim bc As BitmapCreator
bc.Initialize(bmp1.Width , bmp1.Height * 3)
Dim r As B4XRect
r.Initialize(0, bmp1.Height, bmp1.Width, bmp1.Height)
bc.DrawBitmap(bmp1, r, True)
Return bc.Bitmap
End Sub