construct_image
Builds an image from an array of pixel data, a width and a height. This is analogous to construct_mesh, but for images.
For technical information on structure of textures and images, see the documentation for get_texture_structure
and get_image_structure
.
Inputs
pixels
The float4
pixel_color
data, as RGBA. The size of this array should be width * height.
width
The width of the image in pixels.
height
The height of the image in pixels.
Outputs
image
The constructed image.