graphics question

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

graphics question

pop.mail.yahoo.com
Hello,
 
Could someone point me to an example of the best way to combine 2 images using color masking. I am using an ImageMorph with an image loaded and would like to overlay other images.  I am thinking of trying BitBlt, but am wondering if there is an easier way.
 
Thanks.

_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: graphics question

Bert Freudenberg

On 29.04.2009, at 15:20, pop.mail.yahoo.com wrote:

Hello,
 
Could someone point me to an example of the best way to combine 2 images using color masking. I am using an ImageMorph with an image loaded and would like to overlay other images.  I am thinking of trying BitBlt, but am wondering if there is an easier way. 

1. get a "ScreeningMorph" from the alphabetical morph list (Alt-m)
2. drop in a source morph, for example, an image from a folder on your disk
3. drop in a screen morph, for example, an ellipse from the supplies flap

Result:


- Bert -



_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: graphics question

Derek O'Connell-2
In reply to this post by pop.mail.yahoo.com
ScreeningMorph example: http://www.etoysillinois.org/library.php?sl=487

pop.mail.yahoo.com wrote:

> Hello,
>
> Could someone point me to an example of the best way to combine 2 images using color masking. I am using an ImageMorph with an image loaded and would like to overlay other images.  I am thinking of trying BitBlt, but am wondering if there is an easier way.
>
> Thanks.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: graphics question

Bert Freudenberg
On 29.04.2009, at 17:31, Derek O'Connell wrote:

> ScreeningMorph example: http://www.etoysillinois.org/library.php?
> sl=487


Nice one! Had not thought of using this to recolor sketches :)

- Bert -


_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: graphics question

Jerome Peace
In reply to this post by Derek O'Connell-2

Hi Derek,

The screening morph mentioned in previous posts is good.

Another interesting way do overlay images is to put them in as the graphic for a BitmapFill in a polygon. Then adjust the shape to show just the part you want.

For jigsaw pieces use a bunch of polygons.
Line up polygons then giving each the same image for a fill and aligning the fill origin at the same point on the screen for each fill. Each polygon has its piece of the puzzle.
Moving the polygons then moves the piece.

Yours in curiosity and service, --Jerome Peace.

--- On Wed, 4/29/09, Derek O'Connell <[hidden email]> wrote:

> From: Derek O'Connell <[hidden email]>
> Subject: Re: [Newbies] graphics question
> To: "A friendly place to get answers to even the most basic questions about Squeak." <[hidden email]>
> Date: Wednesday, April 29, 2009, 11:31 AM
> ScreeningMorph example:
> http://www.etoysillinois.org/library.php?sl=487
>
> pop.mail.yahoo.com wrote:
> > Hello,
> >
> > Could someone point me to an example of the best way
> to combine 2 images using color masking. I am using an
> ImageMorph with an image loaded and would like to overlay
> other images.  I am thinking of trying BitBlt, but am
> wondering if there is an easier way.
> >
> > Thanks.
> >



     
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners
Reply | Threaded
Open this post in threaded view
|

Re: graphics question

Derek O'Connell-2
Hi Jerome,

thanks for the tip. Here's one in return: to rotate and scale the
polygon *and* it's bitmap fill embed the polygon in a holder,
rotate/scale the holder then drag the polygon back out.

Regards,

Derek

Jerome Peace wrote:

> Hi Derek,
>
> The screening morph mentioned in previous posts is good.
>
> Another interesting way do overlay images is to put them in as the graphic for a BitmapFill in a polygon. Then adjust the shape to show just the part you want.
>
> For jigsaw pieces use a bunch of polygons.
> Line up polygons then giving each the same image for a fill and aligning the fill origin at the same point on the screen for each fill. Each polygon has its piece of the puzzle.
> Moving the polygons then moves the piece.
>
> Yours in curiosity and service, --Jerome Peace.
>
> --- On Wed, 4/29/09, Derek O'Connell <[hidden email]> wrote:
>
>> From: Derek O'Connell <[hidden email]>
>> Subject: Re: [Newbies] graphics question
>> To: "A friendly place to get answers to even the most basic questions about Squeak." <[hidden email]>
>> Date: Wednesday, April 29, 2009, 11:31 AM
>> ScreeningMorph example:
>> http://www.etoysillinois.org/library.php?sl=487
>>
>> pop.mail.yahoo.com wrote:
>>> Hello,
>>>
>>> Could someone point me to an example of the best way
>> to combine 2 images using color masking. I am using an
>> ImageMorph with an image loaded and would like to overlay
>> other images.  I am thinking of trying BitBlt, but am
>> wondering if there is an easier way.
>>> Thanks.
>>>
>
>
>
>      
> _______________________________________________
> Beginners mailing list
> [hidden email]
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
_______________________________________________
Beginners mailing list
[hidden email]
http://lists.squeakfoundation.org/mailman/listinfo/beginners