Re: The Trunk: Graphics-eem.529.mcz
tim Rowledge <[email protected]> Fri, 12 Jun 2026 10:28:36 -0700
| Newsgroups | gmane.comp.lang.smalltalk.squeak.general |
|---|---|
| Message-ID | <[email protected]> |
I feel fairly sure that this was a NuScratch innovation and that there was code to do just this. > On Jun 12, 2026, at 10:15 AM, Christoph Thiede via Squeak-dev <[email protected]> wrote: > > Hi Eliot, > > I'm curious, why does Form>>#pixelValueAt:put: not use this new primitive? :-) > > Best, > Christoph > > -- > Sent from Squeak Inbox Talk > > On 2022-07-26T18:58:30+00:00, [email protected] wrote: > > 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(a)y put: pixelValue. > + ^oldValue!Squeak-dev mailing list -- [email protected] > To unsubscribe send an email to [email protected] tim -- tim Rowledge; [email protected]; http://www.rowledge.org/tim The colder the X-ray table, the more of your body is required on it. Squeak-dev mailing list -- [email protected] To unsubscribe send an email to [email protected]