The Trunk: Graphics-ct.562.mcz

[email protected] Sun, 21 Jun 2026 21:33:19 0000
Newsgroups gmane.comp.lang.smalltalk.squeak.general
Message-ID <[email protected]>
Christoph Thiede uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-ct.562.mcz

==================== Summary ====================

Name: Graphics-ct.562
Author: ct
Time: 21 June 2026, 11:33:18.163152 pm
UUID: ac5d9c4c-d0c2-4f2c-a65d-cfbcf9aba33d
Ancestors: Graphics-nice.561

Deprecates AnimatedGIFReaderWriter in favor of GIFReadWriter.

=============== Diff against Graphics-nice.561 ===============

Item was removed:
- GIFReadWriter subclass: #AnimatedGIFReadWriter
- 	instanceVariableNames: 'forms delays comments'
- 	classVariableNames: ''
- 	poolDictionaries: ''
- 	category: 'Graphics-Files'!

Item was removed:
- ----- Method: AnimatedGIFReadWriter class>>basicNew (in category 'instance creation') -----
- basicNew
- 	"Notify that the class is being deprecated."
- 	self deprecated: 'This class is deprecated. Its functionality can be found in the regular GIFReadWriter class instead.'.
- 	^ super basicNew
- 	!

Item was removed:
- ----- Method: AnimatedGIFReadWriter class>>formsFromFileNamed: (in category 'image reading/writing') -----
- formsFromFileNamed: fileName 
- 	| stream |
- 	stream := FileStream readOnlyFileNamed: fileName.
- 	^ self formsFromStream: stream!

Item was removed:
- ----- Method: AnimatedGIFReadWriter class>>formsFromStream: (in category 'image reading/writing') -----
- formsFromStream: stream 
- 	| reader |
- 	reader := self new on: stream reset.
- 	Cursor read
- 		showWhile: [reader allImages.
- 			reader close].
- 	^reader!

Item was removed:
- ----- Method: AnimatedGIFReadWriter class>>typicalFileExtensions (in category 'image reading/writing') -----
- typicalFileExtensions
- 	"Answer a collection of file extensions (lowercase) which files that I can read might commonly have"
- 	^#()!

Item was removed:
- ----- Method: AnimatedGIFReadWriter class>>understandsImageFormat: (in category 'image reading/writing') -----
- understandsImageFormat: aStream
- 	^ false!

Item was removed:
- ----- Method: AnimatedGIFReadWriter class>>wantsToHandleGIFs (in category 'image reading/writing') -----
- wantsToHandleGIFs
- 	^ false!

Item was removed:
- ----- Method: AnimatedGIFReadWriter>>allImages (in category 'accessing') -----
- allImages
- 	| body colorTable |
- 	localColorTable := nil.
- 	forms := OrderedCollection new.
- 	delays := OrderedCollection new.
- 	comments := OrderedCollection new.
- 	self readHeader.
- 	[(body := self readBody) == nil]
- 		whileFalse: [colorTable := localColorTable
- 						ifNil: [colorPalette].
- 			transparentIndex
- 				ifNotNil: [transparentIndex + 1 > colorTable size
- 						ifTrue: [colorTable := colorTable forceTo: transparentIndex + 1 paddingWith: Color white].
- 					colorTable at: transparentIndex + 1 put: Color transparent].
- 			body colors: colorTable.
- 			forms add: body].
- 	^ forms!

Item was removed:
- ----- Method: AnimatedGIFReadWriter>>comment: (in category 'private') -----
- comment: aString
- 	comments add: aString!

Item was removed:
- ----- Method: AnimatedGIFReadWriter>>delays (in category 'accessing') -----
- delays
- 	^ delays!

Item was removed:
- ----- Method: AnimatedGIFReadWriter>>forms (in category 'accessing') -----
- forms
- 	^ forms!

Item was removed:
- ----- Method: AnimatedGIFReadWriter>>readBitData (in category 'private-decoding') -----
- readBitData
- 	| form |
- 	form := super readBitData.
- 	form offset: offset.
- 	^form!

Squeak-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]