remember Style Image
Create and remember a StyleImage with ImageBitmap.
Return
Parameters
the id of the image
The image data of the bitmap as ImageBitmap
scale factor for the image
option to treat whether image is SDF(signed distance field) or not
An array of two-element arrays, consisting of two numbers that represent the from position and the to position of areas that can be stretched horizontally.
An array of two-element arrays, consisting of two numbers that represent the from position and the to position of areas that can be stretched vertically.
An array of four numbers, with the first two specifying the left, top corner, and the last two specifying the right, bottom corner. If present, and if the icon uses icon-text-fit, the symbol's text will be fit inside the content box.
Create and remember a StyleImage with painter and key.
Return
Parameters
An optional key to be used as a key for the remembered value.
the id of the image
the Painter to provide the image
scale factor for the image
option to treat whether image is SDF(signed distance field) or not
An array of two-element arrays, consisting of two numbers that represent the from position and the to position of areas that can be stretched horizontally.
An array of two-element arrays, consisting of two numbers that represent the from position and the to position of areas that can be stretched vertically.
An array of four numbers, with the first two specifying the left, top corner, and the last two specifying the right, bottom corner. If present, and if the icon uses icon-text-fit, the symbol's text will be fit inside the content box.
Create and remember a StyleImage with resourceId.
Return
Parameters
the id of the image
the resource id to be loaded to the image
scale factor for the image
option to treat whether image is SDF(signed distance field) or not
An array of two-element arrays, consisting of two numbers that represent the from position and the to position of areas that can be stretched horizontally.
An array of two-element arrays, consisting of two numbers that represent the from position and the to position of areas that can be stretched vertically.
An array of four numbers, with the first two specifying the left, top corner, and the last two specifying the right, bottom corner. If present, and if the icon uses icon-text-fit, the symbol's text will be fit inside the content box.