Hello. Thanks for your code. I've created other faster than yours, but i think it could be faster with some changes. And the more important, can resize images with transparent pixels.
It works with RGBArrays. First, we need a function to resize Arrays:
INI: Source Array
X: Width of Source Array
Y: Height of Source Array
X2: Width of the Output Array
Y2: Height of the Output Array
Returns OUT (Output Array)
How to use it:
Et voil�. Next, i will modify a bit the "reescalaArray" function to improve more speed. If you get better results, please, share the solution
Happy summer!!
PD: Sorry my English, but i am Spanish
[ July 27, 2005: Message edited by: LuisMiguel Rubio ]