Mar 9, 2015 Replies: 48 See attached project with inline Java code to create round imageviews. You only need library JavaObject V2.01 to be enabled. Attachments RoundBitmap.zip 57.1 KB · Views: 2,550 Last edited: Jul 7, 2015 Click to expand...
See attached project with inline Java code to create round imageviews. You only need library JavaObject V2.01 to be enabled.
Johan Schoeman Expert Licensed User Longtime User Jan 5, 2016 #41 Kwame Twum said: Yippie!, I did it ... I had to: 1. Draw a path with a white fill 2. Draw the second path with a slightly lesser dimension.. Thanks a lot @Johan Schoeman... Took me hours since I'm a bit new to Java I don't know if that's the standard way though, but I go it to work the way I wanted . View attachment 40281 Click to expand... Well done! Now you have learnt something. There are plenty of ways to skin a cat... Last edited: Mar 22, 2016
Kwame Twum said: Yippie!, I did it ... I had to: 1. Draw a path with a white fill 2. Draw the second path with a slightly lesser dimension.. Thanks a lot @Johan Schoeman... Took me hours since I'm a bit new to Java I don't know if that's the standard way though, but I go it to work the way I wanted . View attachment 40281 Click to expand... Well done! Now you have learnt something. There are plenty of ways to skin a cat...
B bparent Member Licensed User Longtime User Mar 9, 2016 #42 Thanks, this is nice and helpful. The bitmap loaded in the heart shaped imageview comes in rotated 90 degrees counterclockwise. Is there a way to maintain same image orientation from original picture?
Thanks, this is nice and helpful. The bitmap loaded in the heart shaped imageview comes in rotated 90 degrees counterclockwise. Is there a way to maintain same image orientation from original picture?
Kwame Twum Active Member Licensed User Longtime User Mar 9, 2016 #43 on which device are you testing this?
B bparent Member Licensed User Longtime User Mar 9, 2016 #44 Kwame Twum said: on which device are you testing this? Click to expand... Samsung S4
Kwame Twum Active Member Licensed User Longtime User Mar 9, 2016 #45 thought as much, Samsung seems to store orientation together with image try initializing the image with the code from this: https://www.b4x.com/android/forum/t...ibrary-functionality.23801/page-4#post-151355
thought as much, Samsung seems to store orientation together with image try initializing the image with the code from this: https://www.b4x.com/android/forum/t...ibrary-functionality.23801/page-4#post-151355
B bparent Member Licensed User Longtime User Mar 10, 2016 #46 Kwame Twum said: thought as much, Samsung seems to store orientation together with image try initializing the image with the code from this: https://www.b4x.com/android/forum/t...ibrary-functionality.23801/page-4#post-151355 Click to expand... Thank you. That worked.
Kwame Twum said: thought as much, Samsung seems to store orientation together with image try initializing the image with the code from this: https://www.b4x.com/android/forum/t...ibrary-functionality.23801/page-4#post-151355 Click to expand... Thank you. That worked.
Leni Berry Active Member Licensed User Longtime User Apr 10, 2017 #48 Dear Johan Schoeman, How to get rounded rectangle image with inline java code? thx.
Johan Schoeman Expert Licensed User Longtime User Apr 10, 2017 #49 Leni Berry said: Dear Johan Schoeman, How to get rounded rectangle image with inline java code? thx. Click to expand... Go here Leni: https://www.b4x.com/android/forum/threads/imagemanipulation-with-inline-java-code.52066/
Leni Berry said: Dear Johan Schoeman, How to get rounded rectangle image with inline java code? thx. Click to expand... Go here Leni: https://www.b4x.com/android/forum/threads/imagemanipulation-with-inline-java-code.52066/