   Image to DirectDrawSurface7[VB]
  I am trying to transfer Image data into a surface quickly. I had a function setup to do it, but it did it in 96ms. What I had it do is lock the surface and image, then go through each pixel and set the color in the image. If there is an easier way, please could you explain?   
  I think the quickest way is to lock and then memcpy the data up.  However, I've been looking at the "pitch" value from the locked area with increasing interest recently.  It seems the pitch is not always the width in pixels * DWORD32 (for an ARGB8 texture), so I suppose you'd have to memcpy one scanline at a time.  If I remember my x86 instruction set, memcpy can take advantage of `rep movs' (or similar) instructions, so it should be quicker than manually incrementing a variable across a scanline.  It's all theory of course, because complications like instruction pairing could impinge on performance.  Anyway, depending on what you're doing - whether the source has the same format as the destination texture, etc., you have different options.