Hello!
I am using this function to create an image-gradient effect:
However, I end up getting this tearing effect on the gradient. I noticed that it doesn't use blending, is there any way to fix that?
This is the call:
CPF.SetGradientBackground(overlayPanel, Array As Int(0xddF1EAE7, 0x00BAB8BA), "TOP_BOTTOM")
Thank you!
I am using this function to create an image-gradient effect:
B4X:
public Sub SetGradientBackground(pnl As B4XView, Clrs() As Int, Orientation As String)
Dim bc As BitmapCreator
bc.Initialize(pnl.Width / xui.Scale, pnl.Height / xui.Scale)
bc.FillGradient(Clrs, bc.TargetRect, Orientation)
Dim iv As ImageView
iv.Initialize("")
Dim xiv As B4XView = iv
pnl.AddView(xiv, 0, 0, pnl.Width, pnl.Height)
xiv.SendToBack
bc.SetBitmapToImageView(bc.Bitmap, xiv)
End Sub
However, I end up getting this tearing effect on the gradient. I noticed that it doesn't use blending, is there any way to fix that?
This is the call:
CPF.SetGradientBackground(overlayPanel, Array As Int(0xddF1EAE7, 0x00BAB8BA), "TOP_BOTTOM")
Thank you!