Skip to content

LoadImage

Name Mandatory Description Default Type
⬅️ Input An image represented as a byte array BytesAny
Output ➡️ The image as an image type. Image
File No The file to load the image from none StringVar(String)None
BPP No bits per pixel (HDR images loading and such!) BPP::u8 BPP
PremultiplyAlpha No Toggle premultiplication of alpha channel false Bool

This shard loads an image from a file (specified in the File parameter) or byte array (passed as input) and outputs it as an image type, that can subsequently be used by other shards such as UI.Image and UI.ImageButton.