<div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000">
                                        
                                        
                                            
                                        
                                        
                                        Hi, there.<div><br></div><div>Hmm... a<span style="font-size: 10pt;line-height: 1.5">ccording to Canvas >> #translucentImage:at:sourceRect: and FormCanvas >> #setFillColor: (via FormCanvas >> #frameAndFillRectangle:...) both use "Form blend".</span></div><div><span style="font-size: 10pt;line-height: 1.5"><br></span></div><div><span style="font-size: 10pt;line-height: 1.5">It should produce the same result.</span></div><div><span style="font-size: 10pt;line-height: 1.5"><br></span></div><div><span style="font-size: 10pt;line-height: 1.5">Maybe the Form (via #imageForm) itself is created differently. See Morph >> #imageForm:forRectangle: and FormCanvas >> #transformBy:clippingTo:during:smoothing:.</span></div><div><span style="font-size: 10pt;line-height: 1.5"><br></span></div><div><span style="font-size: 10pt;line-height: 1.5">There are only two senders of #blendAlphaScaled. </span></div><div><span style="font-size: 10pt;line-height: 1.5"><br></span></div><div><span style="font-size: 10pt;line-height: 1.5">Best,</span></div><div><span style="font-size: 10pt;line-height: 1.5">Marcel</span></div><div class="mb_sig"></div>
                                        
                                        <blockquote class="history_container" type="cite" style="border-left-style: solid;border-width: 1px;margin-top: 20px;margin-left: 0px;padding-left: 10px;min-width: 500px">
                        <p style="color: #AAAAAA; margin-top: 10px;">Am 11.12.2018 09:00:36 schrieb Stéphane Rollandin <lecteur@zogotounga.net>:</p><div style="font-family:Arial,Helvetica,sans-serif">> 
<br>>     Why is it that
<br>> 
<br>>              (Morph new color: (Color blue alpha: 0.5))
<br>> 
<br>>     and
<br>> 
<br>>              (Morph new color: (Color blue alpha: 0.5)) imageForm asMorph
<br>> 
<br>>     do not have the same color?
<br>> 
<br>> 
<br>> Because ImageMorph is using "Form blend" rule instead of "Form 
<br>> blendAlphaScaled".
<br>
<br>
<br>Where does this happen? Using SketchMorph instead of ImageMorph shows 
<br>the same behavior.
<br>
<br>The only way I found so far to fix the issue is to subclass FormCanvas 
<br>as FormCanvas2, with the single method #setFillColor: where I changed 
<br>the #blend send to #blendAlpha, and then to redefine 
<br>#imageForm:forRectangle: in Rectangle as
<br>
<br>imageForm: depth forRectangle: rect
<br>      | canvas |
<br>      canvas := FormCanvas2 extent: rect extent depth: depth.
<br>      canvas translateBy: rect topLeft negated
<br>              during:[:tempCanvas| tempCanvas fullDrawMorph: self].
<br>      ^ canvas form offset: rect topLeft
<br>
<br>(see attached code)
<br>
<br>Is there another way to have a Form exactly faithful to the displayed 
<br>morph? And shouldn't that be the defaut behavior of #imageForm (in other 
<br>words, isn't the current behavior a bug)?
<br>
<br>Best,
<br>
<br>Stef
<br><br></div></blockquote></div>