I don't understand the logic of your app here.
You're scaling a font icon. 
Converting it to a non-scalable png.
Then placing that in a self scaling button to scale again.

I suggest isolating this to a runnable test case.

On Sunday, May 2, 2021 at 10:29:07 AM UTC+3 P5music wrote:

> No, normalButtonSize is not huge. Maybe my written explanation was not 
> clear enough in regard of the images.
>
> As you can see from the attached images the buttons have the right size, so
> I can say that
> the image itself is not huge, but the internal drawing is out of scale so
>
> the resulting picture has the right size but it depicts only a small 
> fraction of the total area of the drawing.
>
> You can see that in one image in particular a detail is "magnified", so 
> you recognize the shape of the icon and it is clear that
> it is like 
> the image is huge but the viewport just shows a portion of it.
>
> The viewport is the button
> and it is the size of the resulting image: 
> it has the right size in pixels but the drawing exceedes it.
> Regards
> Il giorno domenica 2 maggio 2021 alle 03:37:11 UTC+2 Shai Almog ha scritto:
>
>> What's normalButtonSize ?
>> I'm assuming it's huge on iOS.
>>
>> On Saturday, May 1, 2021 at 5:36:05 PM UTC+3 P5music wrote:
>>
>>> Here are the images (see previous message)
>>> Regards
>>> Il giorno sabato 1 maggio 2021 alle 14:09:35 UTC+2 P5music ha scritto:
>>>
>>>> My CN1 app has some buttons on the interface with images created with 
>>>> the Flamingo tool, that is, they are created in Java code from SVG files.
>>>> On the simulator and on Android the user interface is almost good, with 
>>>> right buttons image (see attached image 
>>>> right_button_image_dimension_example.png)
>>>>
>>>> On iOS the buttons have the right size but the images are huge or tiny
>>>> (see attached image wrong_button_image_dimension_example
>>>> for the huge case)
>>>>
>>>> This is the code for the most recognizable one:
>>>> saveIconImageSoliciting=new 
>>>> SaveIconSoliciting().scaled(normalButtonSize,
>>>> normalButtonSize).toImage();
>>>> saveButton=new ScaleImageButton(saveIconImageSoliciting);
>>>> where
>>>> SaveIconSoliciting is the class created by Flamingo.
>>>>
>>>> see also these thread
>>>>
>>>> https://groups.google.com/g/codenameone-discussions/c/K94DFhApfRY/m/CD3ISV3RBgAJ
>>>> Can my app be affected by that on iOS?
>>>> Otherwise what could be the cause and how to fix?
>>>> Thanks in advanvce
>>>>
>>>

-- 
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/30ed2ae9-6ea3-420a-9864-00f8dede8848n%40googlegroups.com.

Reply via email to