Android Question Unwanted Pixel appearance at the corners

klaus

Expert
Licensed User
It depends also on the device screen resolution.
This is the corner on my Samsung Galaxy S8.

upload_2019-4-16_19-52-54.png
upload_2019-4-16_19-53-40.png


I suppose that the problem is due to the anti aliasing.
From what I know, it cannot be disabled.
BitmapCreator has a ReplaceSemiTransparentPixels(NewColor As Int, Rect As B4XRect) method.
Not sure if it will solve your problem.
 

Erel

Administrator
Staff member
Licensed User
I see it too after I take a screenshot and enlarge it. It is not noticeable on the device directly.

If you can reproduce it in a small project then I can further investigate it.
 

Erel

Administrator
Staff member
Licensed User
You are calling DrawRectRounded with corner radius set to 0. This case is easy to fix. DrawRectRounded should call DrawRect.
Does it happen in other cases where the radius > 1 ?
 
Top