   Reading greyscale values of a bitmap file into an array
  Hello.  I have a 1024 by 1024 8 bit greyscale bitmap.  I can load it into my program to view it, etc.  I have it as a texture. But...  How do I get the dark / light values in the texture?  I need to store them into an array to use them as a heightmap.  Otherwise, how do I read all of the rgb value into an array instaed?  (perhaps I will use red for height, green for texture, and blue for shadow mapping)  Anyway, please let me know how to do this.  Thanks. 
IDirect3DTexture9::LockRect  This will let you get all all of the RGB data, all contained in a (mostly) simple array.  The most complicated part is dealing with the pitch (bytes per row), and that isn''t really complicated anyway.  So basically, it''s quite easy. 