/// <summary> /// Get the pixels of a section of this texture /// </summary> public TexturePixels GetPixels(Vector2 topLeft, Vector2 dimensions, int surfaceIndex = 0) { return(new TexturePixels(MtaClient.DxGetTexturePixels(surfaceIndex, materialElement, (int)topLeft.X, (int)topLeft.Y, (int)dimensions.X, (int)dimensions.Y))); }