[squeak-dev] The Trunk: Graphics-eem.529.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Jul 26 18:58:30 UTC 2022
Eliot Miranda uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-eem.529.mcz
==================== Summary ====================
Name: Graphics-eem.529
Author: eem
Time: 26 July 2022, 11:58:24.028857 am
UUID: e9d779b9-578e-4eea-9d2a-b68fffc5c366
Ancestors: Graphics-mt.528
Add the new primitivePixelValueAtPut primitive, which is included in 6.x VMs.
=============== Diff against Graphics-mt.528 ===============
Item was added:
+ ----- Method: Form>>primPixelValueAtX:y:put: (in category 'pixel access') -----
+ primPixelValueAtX: x y: y put: pixelValue
+ "Set the raw pixel value at the given point. Answer the previous value of the pixel.
+ This pixel value depends on the receiver's depth. Typical clients use colorAt: to get a Color. Make sure the colorMap is nil for ColorForms "
+
+ <primitive: 'primitivePixelValueAtPut' module:'BitBltPlugin' error: ec>
+ | oldValue |
+ oldValue := self primPixelValueAtX: x y: y.
+ (BitBlt bitPokerToForm: self) pixelAt: x at y put: pixelValue.
+ ^oldValue!
More information about the Squeak-dev
mailing list
|