[Pharo-project] merging images?
fernando.olivero at usi.ch
Fri Jun 10 09:32:30 EDT 2011
Nice idea Esteban! As Lukas pointed out, BitBlt is the revolutionary
bitmap combination strategy algorithm the Dan invented long ago, which
enabled the first graphical user interfaces for OOP.
It's all about combination rules, check out the class side examples.
Also check out the protocol of Form, a lot of nice things there. I'm
using many animations from there in the next Gaucho.
Seems that you could use Form>>stencil. A hint on how to use it:
ColorForm>>twoToneFromDisplay: aRectangle backgroundColor: bgColor.
On Fri, Jun 10, 2011 at 3:05 PM, Lukas Renggli <renggli at gmail.com> wrote:
> The class BitBlt by Dan Ingalls does this.
> On 10 June 2011 14:41, Esteban Lorenzano <estebanlm at gmail.com> wrote:
>> I wonder if there is a way to merge two Form objects into a new one?
>> I'm trying to add "status" to some icons, something like "filter active" an icon with a mark, "filter inactive", another mark.
>> Of course, I can create two different icons, but I thought "it would be nice to have this as a general functionality" :)
> Lukas Renggli
More information about the Pharo-dev