The Trunk: Graphics-eem.320.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Graphics-eem.320.mcz

commits-2
Eliot Miranda uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-eem.320.mcz

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

Name: Graphics-eem.320
Author: eem
Time: 9 January 2016, 8:58:44.935792 am
UUID: 805d5995-61ee-409d-9c05-b7f7de330942
Ancestors: Graphics-tpr.319

categorize two uncategorized methods

=============== Diff against Graphics-tpr.319 ===============

Item was changed:
+ ----- Method: Bitmap>>asByteArray (in category 'converting') -----
- ----- Method: Bitmap>>asByteArray (in category 'as yet unclassified') -----
  asByteArray
  "Faster way to make a byte array from me.
  copyFromByteArray: makes equal Bitmap."
  | f bytes hack |
  f := Form extent: 4@self size depth: 8 bits: self.
  bytes := ByteArray new: self size * 4.
  hack := Form new hackBits: bytes.
  Smalltalk isLittleEndian ifTrue:[hack swapEndianness].
  hack copyBits: f boundingBox
  from: f
  at: (0@0)
  clippingBox: hack boundingBox
  rule: Form over
  fillColor: nil
  map: nil.
 
  "f displayOn: hack."
  ^ bytes.
  !

Item was changed:
+ ----- Method: Bitmap>>copy (in category 'copying') -----
- ----- Method: Bitmap>>copy (in category 'as yet unclassified') -----
  copy
 
  ^self clone!