[squeak-dev] ImageForm color with alpha

St├ęphane Rollandin lecteur at zogotounga.net
Tue Dec 11 10:32:19 UTC 2018


> Hmm... according to Canvas >> #translucentImage:at:sourceRect: and 
> FormCanvas >> #setFillColor: (via FormCanvas >> 
> #frameAndFillRectangle:...) both use "Form blend".
> 
> It should produce the same result.
> 
> Maybe the Form (via #imageForm) itself is created differently. See Morph 
>  >> #imageForm:forRectangle: and FormCanvas >> 
> #transformBy:clippingTo:during:smoothing:.
> 
> There are only two senders of #blendAlphaScaled.

Ah! It seems that simply using #blendAlphaScaled in 
#translucentImage:at:sourceRect: does the trick...

Stef


More information about the Squeak-dev mailing list