I have code that can do the resizing along with keeping it looking right (not stretching it), but it is in C#. I will try to find it and post it for you if you want.