Image.createFromData

Creates a new image of given size and format. See format constants. Fills the image with the given raw data. If use_mipmaps is true then loads mipmaps for this image from data. See generateMipmaps.

struct Image
@nogc nothrow
void
createFromData
(
in long width
,
in long height
,
in bool use_mipmaps
,
in long format
,
in PoolByteArray data
)

Meta