I am looking for the fastest method for resizing Bitmap objects.
So far, Intel's IPP library holds the record. With it, I can resize a
1400x1200 Bitmap to 500x500 128 times a second. I suspect Direct 3D would
be faster, but the bottleneck seems to be loading a creating a surface from
a Bitmap object. I am NOT reading Bitmaps from files. I am taking screen
I suspect Direct3D would be faster, but I am having trouble with the
algorithm. I am a Direct3D novice. I got it working once but a coworker
accidentally undid my checkout from source control and I lost it. The code
I have working had the problem that it took 2.8 seconds to create a surface
from a Bitmap.
The method I am trying to implement needs to look like this:
Bitmap ResizeBitmap(Bitmap srcBitmap, Size newSize);
I am trying to use device.StretchRectangle to actually do the resize. My
algorithm does this:
* Create a surface from a Bitmap (takes 2.8 seconds - won't do me any good
if I can't reduce this to a few ms)
* use StretchRectangle to resize the surface (to the backbuffer)
* copy the resulting surface (backbuffer) to a new Bitmap object
Are there any Direct3D implementation of this out there?