Good morning Sir,
I have a problem in the loading of the image
placeholder = (EncodedImage)
resourceObjectInstance.getImage("toolbar-profile-pic.png");
Image img =
URLImage.createToStorage(placeholder,"http://localhost/swr/web/uploads/"+ServiceUser.getInstance().affichuser(mail).get(0).getImage(),
"http://localhost/swr/web/uploads/"+ServiceUser.getInstance().affichuser(mail).get(0).getImage(),
URLImage.RESIZE_SCALE);
Label label1 = new Label(img);
int w = img.getWidth();
int h = img.getHeight();
Image maskImage = Image.createImage(w, h);
Graphics g = maskImage.getGraphics();
g.setAntiAliased(true);
g.setColor(0x000000);
g.fillRect(0, 0, w, h);
g.setColor(0xffffff);
g.fillArc(0, 0, w, h, 0, 360);
Label label2 = new Label(maskImage);
Object mask = maskImage.createMask();
Image maskedImage = img.applyMask(mask);
Label label3 = new Label(maskedImage);
getToolbar().addCommandToRightBar("",maskedImage, e -> {});
this is my code
when i open my account i must go to another page to see my picture
--
You received this message because you are subscribed to the Google Groups
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/codenameone-discussions/580f69cc-d5d5-45e7-b3c4-57d77a2391ec%40googlegroups.com.