UI / ImageInfo
ImageInfo Class
Image information
Table of contents
Accessors
assetICON(): AssetIconData other |
---|
Retrieve icon data for ImageInfo |
color(): Readonly <LinearColor > other |
Retrieve the color of ImageInfo |
drawType(): SlateBrushDrawType other |
Get the drawing type of ImageInfo |
id(): string other |
Get the ID of ImageInfo |
margin(): Readonly <Margin > other |
Obtain the margin of ImageInfo |
size(): Readonly <Vector2 > other |
Retrieve the size of ImageInfo |
Methods
asyncSetByID(id : string , bUseSRGB? : boolean ): Promise <boolean > other |
---|
Set image information through ID |
setByAssetIcon(assetId : string , size : AssetIconSize , bUseSRGB? : boolean ): Promise <boolean > other |
Set the icon with the specified ID and resolution |
Accessors
assetICON
• | ||
---|---|---|
Retrieve icon data for ImageInfo Returns
|
color
• | • | ||||
---|---|---|---|---|---|
Retrieve the color of ImageInfo Returns
| Set the color of ImageInfo Parameters
|
drawType
• | • | ||||
---|---|---|---|---|---|
Get the drawing type of ImageInfo Returns
| Set the drawing type of ImageInfo Parameters
|
id
• | ||
---|---|---|
Get the ID of ImageInfo Returns
|
margin
• | • | ||||
---|---|---|---|---|---|
Obtain the margin of ImageInfo Returns
| Set the margin for ImageInfo Parameters
|
size
• | • | ||||
---|---|---|---|---|---|
Retrieve the size of ImageInfo Returns
| Set the size of ImageInfo Parameters
|
Methods
asyncSetByID
• asyncSetByID(id
, bUseSRGB?
): Promise
<boolean
> other
Set image information through ID
Parameters
id string | Image ID range: depends on the length of the ID |
---|---|
bUseSRGB? boolean | Whether to use SRGB mode for texture |
Returns
Promise <boolean > | Is the setting successful |
---|
setByAssetIcon
• setByAssetIcon(assetId
, size
, bUseSRGB?
): Promise
<boolean
> other
Set the icon with the specified ID and resolution
Parameters
assetId string | The asset id of the incoming icon |
---|---|
size AssetIconSize | Enumeration of resolution of incoming icon |
bUseSRGB? boolean | Whether to use SRGB or not |
Returns
Promise <boolean > |
---|