This is DynImage version, based on Thread.

As for me, this version is more clear and robust then standard.
Furthermore, it provide correct resizing images after loading from web.
And some extensions:
1. Improved setImage and, hence, DynImage constructor allow construct DynImage from 
image, string and another DynImage.
2. You may alter standard DynImage reactions on end loading image, because now it 
implemented by event 'imageload'.
3. You may construct DynImage with given size without resizing image in 
DynImage.loadimages array.

In connection of p. 3, is anybody use DynImage.getImage(src,w,h) with given width and 
height?
In my opinion, this isn't good solution, because all DynImages, based on this image, 
will be resized to given size.
And, if we can delete this form of calling from code, code will be even smaller and 
clear.

                                              Yurij Silvestrov

dynimage.zip

Reply via email to