Hi,

I have a constantly changing 300x216 byte array which contains a bitmap essentially. It is actually a CDG (karaoke) file streaming in. So each time I get the bitmap data it is changing. I won't want to display it at 300x216, I want to display it at 1024x768, so I use a call to the GDI stretchblt function (this is called constantly as I receive the bitmap data), but it is very slow. CPU usage jumps very high when stretching this 300x216 image to 1024x768 using this method. Whne I use bitblt at 300x216 everything works nice and fast.

Is there some way I can make this faster using stretchblt. Is there maybe a way I can use the DirectX StretchBlt call to send the image data to my CStatic Device Context? Is there maybe some way I can manipulate the byte array to change the size of the image and then use the regular bitblt call?

Any ideas on how to make this faster?

Thanks,
Greg