[Pkg] The Trunk: Graphics-nice.129.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Mar 30 21:14:12 UTC 2010

Nicolas Cellier uploaded a new version of Graphics to project The Trunk:

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

Name: Graphics-nice.129
Author: nice
Time: 30 March 2010, 10:13:40.324 pm
UUID: 95ee7ec1-dfd6-3f41-9c10-15524928ade0
Ancestors: Graphics-ar.128

1) Fix for http://bugs.squeak.org/view.php?id=7483
2) Fix _ assigments in class comments

=============== Diff against Graphics-ar.128 ===============

Item was changed:
  ImageReadWriter subclass: #PNMReadWriter
  	instanceVariableNames: 'first type origin cols rows depth maxValue tupleType pragma'
  	classVariableNames: ''
  	poolDictionaries: ''
  	category: 'Graphics-Files'!
+ !PNMReadWriter commentStamp: 'nice 3/24/2010 07:37' prior: 0!
- !PNMReadWriter commentStamp: 'jdr 10/20/2003 17:08' prior: 0!
  I am a subclass of ImageReadWriter that decodes portable anymap file formats
  (pbm, pgm, ppm and  pam) images.
  I accept the #origin pragma for SE files as described in:
  Algoritms For Image Processing And Computer Vision. J. R. Parker
  Don't work with 2 bytes samples (16 bit grays, > 32 bits color, etc...), 
  pam files preliminary support.
+ f := ImageReadWriter formFromFileNamed: 'Tools:Squeak3.4:Carmen.ppm'.
- f _ ImageReadWriter formFromFileNamed: 'Tools:Squeak3.4:Carmen.ppm'.
  f morphEdit
  Submitted by Javier Diaz Reinoso, Oct/2003!

Item was changed:
  Pen subclass: #PenPointRecorder
  	instanceVariableNames: 'points'
  	classVariableNames: ''
  	poolDictionaries: ''
  	category: 'Graphics-Primitives'!
+ !PenPointRecorder commentStamp: 'nice 3/24/2010 07:38' prior: 0!
- !PenPointRecorder commentStamp: '<historical>' prior: 0!
  This class is a special kind of Pen that instead of actually drawing lines records the destination points for those lines. These points can later be accessed through my accessing method #points.
  This can be useful when determining the boundaries of a drawing session.
  | pen |
+ pen := PenPointRecorder new.
- pen _ PenPointRecorder new.
  pen up; goto: 100 at 100; down; goto: 120 at 120.
  Transcript cr;
  	show: 'Bounding box for drawing: ';
  	show: (Rectangle encompassing: pen points)
  Implementation note: Shouldn't we override #drawFrom:to:withFirstPoint: instead, and what about #drawLoopX:Y:? Aren't we missing those calls?!

Item was changed:
  ----- Method: DisplayScreen class>>depth:width:height:fullscreen: (in category 'display box access') -----
  depth: depthInteger width: widthInteger height: heightInteger fullscreen: aBoolean
  	"Force Squeak's window (if there's one) into a new size and depth."
  	"DisplayScreen depth: 8 width: 1024 height: 768 fullscreen: false"
  	<primitive: 92>
+ 	self primitiveFailed!
- 	self primitiveFail!

More information about the Packages mailing list