_:nf1ad788598c6409681ba22a36b717320xb1
<http://schema.org/text>
"I just can't stop asking questions lol.\n\nI am trying to get a good concept with this DrawRectRounded2.  I was setting the filled to false and playing around with Strokewidth and Radius.  I notice any Strokewidth value greater then Radius will fill the entire Rect.  Basically, if i need a certain Strokewidth, the Radius value must be greater then Strokewidth?  Is that how it works?  increasing the value of strokewidth is out of wack in a sense.\n\nThe code i was playing around.\nSub DrawRoundedRect(Width As Int, Height As Int, Radius As Int, Clrs() As Int, Orientation As String) As B4XBitmap\n    Dim Gradient As BitmapCreator\n    Gradient.Initialize(10, Height)\n    Gradient.FillGradient(Clrs, Gradient.TargetRect, Orientation)\n    Dim Brush As BCBrush = Gradient.CreateBrushFromBitmapCreator(Gradient)\n    Dim bc As BitmapCreator\n    bc.Initialize(Width, Height)\n    bc.DrawRectRounded2(bc.TargetRect, Brush, False, 0, Radius)\n    Return bc.Bitmap\nEnd Sub\n\nThanks"
<https://www.b4x.com/android/forum/threads/question-about-drawrectrounded2.104316/>