Function ImageTexture.createFromImage

Create a new ImageTexture from an Image with flags from Texture.flags. An sRGB to linear color space conversion can take place, according to Image.format.

void createFromImage (
  Image image,
  const(long) flags = 7L
) nothrow @nogc;