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 RoundBitmap.zip 57.1 KB · Views: 2,804 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 Mar 10, 2015 #4 The attached project adds the ability to display bitmap images in a hexagonal ImageView Attachments HexagonBitmap.zip HexagonBitmap.zip 57.4 KB · Views: 1,546 Last edited: Jul 7, 2015
Johan Schoeman Expert Licensed User Longtime User Mar 10, 2015 #5 The attached project adds the ability to display bitmap images in a triangular ImageView Attachments TriangleBitmap.zip TriangleBitmap.zip 57.5 KB · Views: 1,289 Last edited: Jul 7, 2015
M Mahares Expert Licensed User Longtime User Mar 10, 2015 #6 @Johan Schoeman: Excellent example. I added some silly code to your project: Code: Sub ImageView1_Click Msgbox("I am a parrot trapped in a Triangle.","") End Sub Sub ImageView2_Click Msgbox("I am a parrot trapped in a Hexagon.","") End Sub Sub ImageView3_Click Msgbox("I am a parrot trapped in a Circle.","") End Sub Vive l' Afrique
@Johan Schoeman: Excellent example. I added some silly code to your project: Code: Sub ImageView1_Click Msgbox("I am a parrot trapped in a Triangle.","") End Sub Sub ImageView2_Click Msgbox("I am a parrot trapped in a Hexagon.","") End Sub Sub ImageView3_Click Msgbox("I am a parrot trapped in a Circle.","") End Sub Vive l' Afrique
Johan Schoeman Expert Licensed User Longtime User Mar 10, 2015 #7 ...and last but not least, adding the ability to display bitmap images in a "bubble/droplet" ImageView. From here on you can add more methods to create various/different shapes of imageviews by drawing the required path. Perhaps a bit of maths and trigonometry will be required to do some special shapes - but should be relatively easy to do so. Take note of the line in method public static Bitmap getBubbleBitmap(Bitmap scaleBitmapImage) { ... .... path.addArc(oval, 0, 270); //in degrees! Here 0 degrees is measured from to the right most point of the x-axis and 270 is the top most point of the y-axis. The arc is drawn CLOCKWISE form the starting point (0 degrees) to the end point (270 degrees). Attachments BubbleBitmap.zip BubbleBitmap.zip 57.6 KB · Views: 1,295 Last edited: Jul 7, 2015
...and last but not least, adding the ability to display bitmap images in a "bubble/droplet" ImageView. From here on you can add more methods to create various/different shapes of imageviews by drawing the required path. Perhaps a bit of maths and trigonometry will be required to do some special shapes - but should be relatively easy to do so. Take note of the line in method public static Bitmap getBubbleBitmap(Bitmap scaleBitmapImage) { ... .... path.addArc(oval, 0, 270); //in degrees! Here 0 degrees is measured from to the right most point of the x-axis and 270 is the top most point of the y-axis. The arc is drawn CLOCKWISE form the starting point (0 degrees) to the end point (270 degrees).
Johan Schoeman Expert Licensed User Longtime User Mar 11, 2015 #8 Added the ability to display the bitmap within the Imageview as a star. Use the spinner to select the number of "points" that the star should have (spinner ranges from 4 to 50). Also added a cone shape: bm2 = nativeMe.RunMethod("getConeBitmap",Array(bm)) Attachments StarBitmap.zip StarBitmap.zip 58.3 KB · Views: 1,240 Last edited: Jul 7, 2015
Added the ability to display the bitmap within the Imageview as a star. Use the spinner to select the number of "points" that the star should have (spinner ranges from 4 to 50). Also added a cone shape: bm2 = nativeMe.RunMethod("getConeBitmap",Array(bm))
Johan Schoeman Expert Licensed User Longtime User Mar 13, 2015 #9 Displaying the bitmap within the Imageview as a heart and also a star with a circle around it...just for fun. Attachments BubbleBitmap2.zip BubbleBitmap2.zip 58.8 KB · Views: 1,217 Last edited: Jul 7, 2015
Displaying the bitmap within the Imageview as a heart and also a star with a circle around it...just for fun.
A achtrade Active Member Licensed User Longtime User May 6, 2015 #10 I'm getting this error: Unknown member: InitializeContext in this instruction : nativeMe.InitializeContext
I'm getting this error: Unknown member: InitializeContext in this instruction : nativeMe.InitializeContext
Johan Schoeman Expert Licensed User Longtime User May 7, 2015 #11 achtrade said: I'm getting this error: Unknown member: InitializeContext in this instruction : nativeMe.InitializeContext Click to expand... Do you have library JavaObject V2.01 installed and enabled?
achtrade said: I'm getting this error: Unknown member: InitializeContext in this instruction : nativeMe.InitializeContext Click to expand... Do you have library JavaObject V2.01 installed and enabled?
A achtrade Active Member Licensed User Longtime User May 7, 2015 #12 mine says 1.20, where can I get the 2.01 ?
klaus Expert Licensed User Longtime User May 7, 2015 #13 JavaObjects is deliverd with B4A. What version of B4A are you using ?
klaus Expert Licensed User Longtime User May 7, 2015 #15 Do you have JavaObject files in the AdditionalLibraries folder ? Check if you have the JavaObject are in the Library folder of B4A. Then remove the JavaObject files in the AdditionalLibraries folder.
Do you have JavaObject files in the AdditionalLibraries folder ? Check if you have the JavaObject are in the Library folder of B4A. Then remove the JavaObject files in the AdditionalLibraries folder.
A achtrade Active Member Licensed User Longtime User May 7, 2015 #16 klaus said: Do you have JavaObject files in the AdditionalLibraries folder ? Check if you have the JavaObject are in the Library folder of B4A. Then remove the JavaObject files in the AdditionalLibraries folder. Click to expand... JavaObject files are in Libraries, date 4/30/2014, I don't have AddiontalLibraries
klaus said: Do you have JavaObject files in the AdditionalLibraries folder ? Check if you have the JavaObject are in the Library folder of B4A. Then remove the JavaObject files in the AdditionalLibraries folder. Click to expand... JavaObject files are in Libraries, date 4/30/2014, I don't have AddiontalLibraries
klaus Expert Licensed User Longtime User May 7, 2015 #17 Strange. The date of my files is 2015.02.03. I don't have AddiontalLibraries Click to expand... Where do you save additional libraries not shipped with B4A ?
Strange. The date of my files is 2015.02.03. I don't have AddiontalLibraries Click to expand... Where do you save additional libraries not shipped with B4A ?
A achtrade Active Member Licensed User Longtime User May 7, 2015 #18 klaus said: Strange. Where do you save additional libraries not shipped with B4A ? Click to expand... I put everything in the Libraries folder. is that wrong ?
klaus said: Strange. Where do you save additional libraries not shipped with B4A ? Click to expand... I put everything in the Libraries folder. is that wrong ?
klaus Expert Licensed User Longtime User May 7, 2015 #19 ... is that wrong ? Click to expand... Yes. Look at chapter 14.7.2 Additional libraries folder in the Beginner's Guide.
... is that wrong ? Click to expand... Yes. Look at chapter 14.7.2 Additional libraries folder in the Beginner's Guide.
Johan Schoeman Expert Licensed User Longtime User May 7, 2015 #20 achtrade said: I put everything in the Libraries folder. is that wrong ? Click to expand... Here is the JavaObject V2.01 files. Try them and see what happens Attachments JavaObject.zip JavaObject.zip 10.2 KB · Views: 966
achtrade said: I put everything in the Libraries folder. is that wrong ? Click to expand... Here is the JavaObject V2.01 files. Try them and see what happens