[squeak-dev] ImageForm color with alpha

Marcel Taeumel marcel.taeumel at hpi.de
Tue Dec 11 13:03:18 UTC 2018


Hmm... that's not good for an arbitrary form with alpha informationen. Why not use #blend the entire time here? Isn't #blendAlpha and #blendAlphaScaled kind of a performance trick?

blend
"Answer the integer denoting BitBlt's alpha blend combination rule."
^24

blendAlpha
"Answer the integer denoting BitBlt's blend-with-constant-alpha rule."
^ 30

blendAlphaScaled
"Answer the integer denoting BitBlt's blend-with-alpha-scaled rule."
^ 34

Best,
Marcel
Am 11.12.2018 11:52:14 schrieb Stéphane Rollandin <lecteur at zogotounga.net>:
> Ah! It seems that simply using #blendAlphaScaled in
> #translucentImage:at:sourceRect: does the trick...

Unfortunately this has side effects. For example, #dimmed is now broken...

Stef

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20181211/e1a70fb6/attachment.html>


More information about the Squeak-dev mailing list