B4A Code Snippet [B4X] [XUI] Create a round image - Erel    
Jan 21, 2021   
(32 reactions).LoadBitmap(File.DirAssets, "myimage.jpg")
ImageView1.SetBitmap(CreateRoundBitmap(img...:
Dim xIV As B4XView = ImageView1
xIV.SetBitmap(CreateRoundBitmap(img, xIV .Width))
...
link: You cannot upload the small project?...
link: It looks the same way in a small project.
Maybe the alternate method would be a very good option.
...
link: a small project and upload it. Maybe I can offer a different method based on BitmapCreator....
B4A Code Snippet Draw round bitmap - Erel    
Sep 4, 2016   
(25 reactions)Sub Name: DrawRoundBitmap
Description: This code uses Path object to draw a round bitmap... As Canvas = CreateBitmap
DrawRoundBitmap(cvs, LoadBitmap(File.DirAssets, "1.jpg"))
Activity...
link: https://www.b4x.com/android/forum/threads/roundbitmapwithborder-inline-java-code.51848/#content
Tha...
link: Erel,
How could I do if I want to add color and size to the edge?
Thank you!
https://www.b4x.com/a...
link: Sub Name: DrawRoundBitmap
Description: This code uses Path object to draw a round bitmap...
B4A Question How to create round image - junaidahmed    
Jul 7, 2023I am going to create round image as per below link but I am getting the below error message. Please...(CreateRoundBitmap(iv, xIV .Width))
javac 1.8.0_371
src\one\erp\productionentry.java:516: error...
link: Best way is to use B4XImageView. It has a "round" images feature....
link:
I am going to create round image as per below link but I am getting the below error message...
link: You are most likely using an ImageView as type instead of Dim ImageView1 as B4XView
ImageView...
B4A Code Snippet [B4X] [XUI] Rectangle image with rounded corners - Erel    
Nov 19, 2017   
(14 reactions).SetBitmap(CreateRoundRectBitmap(img, 20dip)) 'ImageView1 type is set to B4XView
...Code to create a rectangle image with rounded corners:
https://www.b4x.com/basic4android/images/SS...
link: CreateRoundRectBitmap creates a bitmap. It doesn't return any view. You need to create...
link: CreateRoundRectBitmap create a bitmap. It doesn't return any view. You need to create...
link: , ImageView1.Height, True)
ImageView1.SetBitmap(CreateRoundRectBitmap(img, 20dip)) 'ImageView1...
B4A Example RoundBitmapWithBorder - inline java code - Johan Schoeman    
Aug 2, 2015   
(12 reactions)Attached project draws a circular bitmap within an imageview including an adjustable border (colour and width) around the image. Making use of inline java code. Only JavaObject V2.01 required.
32897...
link: . Error
javac 1.7.0_45
src\JHS\getRoundedCornerBitmap\main.java:14: error: package android.annotation...
link: Ok, I will try. It's just the project has confidential elements which if I strip out will not al...
link: It works! However, my function version doesn't seem to work. Can you take a quick look at my fun...
B4A Question SimpleMediaManager Round Image and Round Background - BarryW    
Feb 20, 2022How to set round background for SimpleMediaManager
I'm using this code, only the image is round not the background
Dim extra As Map
extra.Initialize
extra.Put(MediaManager.REQUEST_ROUNDIMAGE...
link: )
Extra.Put(MediaManager.REQUEST_ROUNDIMAGE, True)
125816
Images where stretch, but for me...
link: Extra.Put(MediaManager.REQUEST_FADE_ANIMATION_DURATION, 0)
Extra.Put(MediaManager.REQUEST_BA...
link: I don't believe there is such a thing as a round background all views are rectangular.
Try...
B4A Library RoundImage V1.0 - DonManfred    
Feb 5, 2015   
(21 reactions)RoundImage V1.0
This Library can create a round image from an bitmap or an round drawable from an drawable
Sub Globals
Dim ri As RoundImage
Private Panel1 As Panel
Private ImageView1...
link: TRry to create a small project which shows the problem and upload the project. i will run it here to...
link: Well, i am using only the code in the last post...so where is the array?...
link: Array not expected
So then dont use a array then...
Without seeing and running a example-project it...
B4A Library SelectableRoundedImageView - Johan Schoeman    
Jul 4, 2015   
(10 reactions)
35261
SelectableRoundedImageView
Version: 1
SelectableRoundedImage
Fields:
ba As BA
Methods... As Boolean
RemoveView
RequestFocus As Boolean
SendToBack
SetBackgroundImage (arg0 As Bitmap...
link: great ! good luck teacher ;)...
link: Yeah! Now it is working! Thank you for the quick fix...
link: Yes, sure. Take a look
Please try it with the attached new library files (I am shooting in the dark ...
B4A Question bitmap background image on a ROUND CORNERS Panel, How? - Cableguy    
Nov 12, 2015Hi Guys,
I'm trying to set a bitmap to be the background of a Panel, no issues there, my problem is, I want to keep the round corners of the panel, I can live with loosing the border... and...
link: So, B4J is closing the loop ;)
https://en.wikipedia.org/wiki/Bootstrapping_(compilers)...
link: Really powerful, I agree! It only lacks the ability to allow the user to develop a B4A IDE for Andro...
link: I am very impressed, how powerfull B4A - yes I knew already before - and the Users are!!
Really pow...
B4A Question CreateRoundRectBitmap and ImageDownloader - MarcoRome    
Jan 20, 2020")
Dim img As B4XBitmap = xui.LoadBitmap(File.DirAssets, immagine)
ImageView1.SetBitmap(CreateRoundBitmap(img, ImageView1.Width))
Return p
End Sub
But how to use the same to....
I would like to use the CreateRoundRectBitmap ( https://www.b4x.com/android/forum/pages/results...
link: bitmap right after the image is downloaded.
Code ImageDownloaderRound
.....
Sub JobDone(Job As HttpJob...
link: create the round bitmap right after the image is downloaded....
Page: 1  
2  
3