blog games developers documentation portfolio gallery

More in this category:

Copying textures

Texture2D GetCopy()


Get a new texture identical to the original.

Texture2D GetCopy(int x, int y, int w, int h)
Texture2D GetSection(int x, int y, int w, int h)


Get a new texture with size (w, h) and filled the the pixels in the rectangle at (x, y) from the original texture.

Texture2D GetCopy(int x, int y, int w, int h, bool mipMaps)


Get a new texture with size (w, h) and filled the the pixels in the rectangle at (x, y) from the original texture.

void RevertTo(Texture2D original)
void MakeEqual(Texture2D original)
void CopyFrom(Texture2D original)
void CopyFrom(Texture2D original, bool mipMaps)


Make the Texture the same size and fort as the original and copy the pixels from the original.


























































































follow us