title: How to assign one IntPtr to other IntPtr
body: <p>I'm trying work with BitmapData class? and have some problems with assigning IntPtr value to the BitmapData.Scan0 property. Here is my code:</p>
  
  <pre><code>var data = bmp.LockBits(new rectangle(Point.Empty, bmp.Size), ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb);
  data.Scan0 = rh.data.Scan0HGlobal;
  bmp.UnlockBits(data);
  </code></pre>
  
  <p>But, after unlocking image, it doesn't changes. Why? In debugging mode i saw that data.Scan0 was changed to the rh.data.Scan0HGlobal value. In rh.data.Scan0HGlobal i have pointer to the memory where contains raw data of pixels.</p>