FlatRedBall.Graphics.Texture.ImageData.CopyTo C# (CSharp) Метод

CopyTo() публичный Метод

public CopyTo ( ImageData destination, int xOffset, int yOffset ) : void
destination ImageData
xOffset int
yOffset int
Результат void
        public void CopyTo(ImageData destination, int xOffset, int yOffset)
        {
            for (int x = 0; x < width; x++)
            {
                for (int y = 0; y < height; y++)
                {
                    destination.mData[(y + yOffset) * destination.width + (x + xOffset)] = this.mData[y * width + x];
                }
            }
        }