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 generate mipmaps for this image. See the generate_mipmaps method.

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

Meta