언어 설정

Menu
Sites
Language
I'm using ElmSharp's Image object. How do I change the image size?
I'm using ElmSharp's Image object. How do I change the image size?

I'm working on a Galaxy Watch widget.
Example code..

Image img = new Image(Window)
img = new Image(Window)
{
    AlignmentX = -1,
    AlignmentY = -1,
    WeightX = 1,
    WeightY = 1
}
btn.Load(mAll);
 
btn.Resize(10, 30);
By filling out this code, an image of the full screen size will be output.

I used the Resize method but the size did not change.
How do I change the image size?
 
Thank you for letting me know before. Please explain it again this time.
The description of API Documentation does not contain examples, which makes it difficult to understand.
 
https://developer.tizen.org/dev-guide/csapi/api/ElmSharp.Image.html

Responses

1 댓글
Tizen .NET

Could you try to use MinimumWidth & MinimumHeight instead of Resize()?
            Image img = new Image(window)
            {
                MinimumWidth = 170,
                MinimumHeight = 170,
            };
            img.Load(Path.Combine(Tizen.Applications.Application.Current.DirectoryInfo.Resource, "icon.png"));
            img.Show();
(I assume that you add image to box because the size of the children in the Box is determined by MinimumWidth/Height.)
Thanks.