   [SlimDX] Texture.LockRectangle - how to
  Hi all. I try to process loaded from file cube texture. All what i need is change color of loaded texture. So, my method is next:public CubeTexture ProcessCubeTexture(Color4 processColor){   texture = CubeTexture.FromFile(m_manager.Direct3D9.Device, fileName);    SurfaceDescription surfaceDescription = texture.GetLevelDescription(1);   t2 = new CubeTexture(m_manager.Direct3D9.Device, surfaceDescription.Width, 0, Usage.AutoGenerateMipMap | Usage.Dynamic, surfaceDescription.Format, Pool.Managed);   foreach (CubeMapFace face in Enum.GetValues(typeof(CubeMapFace)))   { DataRectangle dataRectangle = texture.LockRectangle(face, 0, LockFlags.ReadOnly); dataRectangle.Data.Seek(0, SeekOrigin.Begin); DataRectangle dataRectangle2 = t2.LockRectangle(face, 0, LockFlags.    dataRectangle2.Data.Seek(0, SeekOrigin.Begin); byte[] pixel = new byte[4]; dataRectangle2.Data.Length) {    dataRectangle.Data.Read(pixel, 0, 4);    dataRectangle2.Data.Write((byte)(pixel[0] * processColor.Blue));    dataRectangle2.Data.Write((byte)(pixel[1] * processColor.Green));    dataRectangle2.Data.Write((byte)(pixel[2] * processColor.Red));    dataRectangle2.Data.Write(pixel[3]); } while (dataRectangle2.Data.Position + 4 < dataRectangle2.Data.Length)   }    return t2;}if have a look to result texture there is some disorientation of lines. first list is in right direction and next line is in  opposite direction..