JPEGReader.st
changeset 1978 4a23e23ca8fa
parent 1805 93f557cbe600
child 2050 a955518cdad4
equal deleted inserted replaced
1977:abd5df24333e 1978:4a23e23ca8fa
   193 
   193 
   194 isValidImageFile:aFileName
   194 isValidImageFile:aFileName
   195     "return true, if aFileName contains a JPG image.
   195     "return true, if aFileName contains a JPG image.
   196      Only look at the files name here ..."
   196      Only look at the files name here ..."
   197 
   197 
   198     (aFileName asLowercase endsWith:'.jpg') ifTrue:[^ true].
   198     (aFileName asString asLowercase endsWith:'.jpg') ifTrue:[^ true].
   199     (aFileName asLowercase endsWith:'.jpeg') ifTrue:[^ true].
   199     (aFileName asString asLowercase endsWith:'.jpeg') ifTrue:[^ true].
   200     ^ false
   200     ^ false
   201 
   201 
   202     "Created: 11.4.1997 / 16:26:25 / cg"
   202     "Created: 11.4.1997 / 16:26:25 / cg"
   203 ! !
   203 ! !
   204 
   204 
   576 ! !
   576 ! !
   577 
   577 
   578 !JPEGReader class methodsFor:'documentation'!
   578 !JPEGReader class methodsFor:'documentation'!
   579 
   579 
   580 version
   580 version
   581     ^ '$Header: /cvs/stx/stx/libview2/JPEGReader.st,v 1.44 2003-09-01 14:47:42 cg Exp $'
   581     ^ '$Header: /cvs/stx/stx/libview2/JPEGReader.st,v 1.45 2004-04-28 15:46:15 penk Exp $'
   582 ! !
   582 ! !
   583 
   583 
   584 JPEGReader initialize!
   584 JPEGReader initialize!