M micro Well-Known Member Licensed User Longtime User Apr 17, 2013 #1 Hi to all how can I create a solid rectangular shape with rounded corners? I can not with ImageLibEx. There is a way to do? Thanks
Hi to all how can I create a solid rectangular shape with rounded corners? I can not with ImageLibEx. There is a way to do? Thanks
klaus Expert Licensed User Longtime User Apr 17, 2013 #2 Use a Panel and set it's background to ColorDrawable. Best regards.
M micro Well-Known Member Licensed User Longtime User Apr 18, 2013 #3 Thanks klaus but I can not understand, can you show me an example? Best regards
klaus Expert Licensed User Longtime User Apr 18, 2013 #4 User's Guide chapter 9.1.1 ColorDrawable. Best regards.
M micro Well-Known Member Licensed User Longtime User Apr 18, 2013 #6 Klaus, my request is for Basic4ppc no B4A.
klaus Expert Licensed User Longtime User Apr 18, 2013 #7 Oh, sorry for that ! I didn't look at the forum title. From what I remember there is no rectangular shape with round corners in B4PPC. Best regards.
Oh, sorry for that ! I didn't look at the forum title. From what I remember there is no rectangular shape with round corners in B4PPC. Best regards.
agraham Expert Licensed User Longtime User Apr 19, 2013 #8 You should be able to draw one with ImageLibEx using DrawerEx.DrawArc1 for the corners and DrawerEx.DrawLine for the sides then fill it with FloodFill.Fill.
You should be able to draw one with ImageLibEx using DrawerEx.DrawArc1 for the corners and DrawerEx.DrawLine for the sides then fill it with FloodFill.Fill.
M micro Well-Known Member Licensed User Longtime User Apr 19, 2013 #9 Four DrawArc, Four DrawLine and how to fill it? Can you please give me an example? you know better the ImageLibEx library.....it is your library Thanks
Four DrawArc, Four DrawLine and how to fill it? Can you please give me an example? you know better the ImageLibEx library.....it is your library Thanks
agraham Expert Licensed User Longtime User Apr 19, 2013 #10 I'm afraid that I don't have the time to work on an example at the moment but it really shouldn't be difficult to do it yourself. Given the four corner positions of a rectangle and a radius it is simple arithmetic to work out the start and stop positions of the four arcs, draw them and then draw lines between them using the same positions.
I'm afraid that I don't have the time to work on an example at the moment but it really shouldn't be difficult to do it yourself. Given the four corner positions of a rectangle and a radius it is simple arithmetic to work out the start and stop positions of the four arcs, draw them and then draw lines between them using the same positions.