[BUG][FIX]ImageReadWriter class>formFromStream:

Tim Rowledge tim at sumeru.stanford.edu
Fri May 3 21:37:53 UTC 2002


                                                                    ImageReadWriter class>formFromStream: was 
a) reseting the stream position, which may not be correct if several images can be present in the one stream. Change to restoring the position to what it was at the beginning of the method.
b) included ImageReadWriter as one of the classes asked if it understands the image format - since it always says no, pointless waste of time.
c) JPEGReadWriter and JPEGReadWRiter2 >both< understand the same format.
It is pure luck of the draw as to which gets to say yes first. If
JPEGReadWriter is obsolete it should be removed. If not, some
cross-check should be added so that JPEGReadWriter is only checked if
there is no plugin for JPEGReadWriter2.

tim
-- 
Tim Rowledge, tim at sumeru.stanford.edu, http://sumeru.stanford.edu/tim
My computer NEVER cras
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ImageReader.1.cs.gz
Type: application/riscos
Size: 797 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20020503/d7105233/ImageReader.1.cs.bin


More information about the Squeak-dev mailing list