'From Squeakland 3.8.5976 of 25 August 2004 [latest update: #325] on 21 September 2004 at 2:36:59 pm'! "Change Set: BmpEndian-bf Date: 21 September 2004 Author: Bert Freudenberg Use SmalltalkImage current isLittleEndian instead of broken SystemEndiannes class. Will be removed in 3.8, too."! !Bitmap methodsFor: 'as yet unclassified' stamp: 'yo 2/18/2004 18:28'! 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. SmalltalkImage current 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. ! ! Smalltalk removeClassNamed: #SystemEndiannes!