Function VisualServerSingleton.textureCreateFromImage

Creates a texture, allocates the space for an image, and fills in the image.

RID textureCreateFromImage (
  Image image,
  const(long) flags = 7L
) nothrow @nogc;