I see your point but I don't think it's worth the hassle unless one wanted to bring ImageMorph futrher on by implementing the needed methods.<div><br></div><div>Karl <br><br><div class="gmail_quote">On Wed, Jan 4, 2012 at 8:25 PM, Lawson English <span dir="ltr"><<a href="mailto:lenglish5@cox.net">lenglish5@cox.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
A sketchmorph is horribly complicated, too.<br>
<br>
ImageMorph was designated as the successor to SketchMorph and then
abandoned. By implication, SketchMorph was abandoned before
ImageMorph.<br>
<br>
Far better to figure out a way to resize ImageMorph, IMHO.<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
L.</font></span><div><div class="h5"><br>
<br>
<br>
<br>
On 1/4/12 8:59 AM, karl ramberg wrote:
<blockquote type="cite">A SketchMorph lets you set the extent directly
<div><br>
</div>
<div>Karl<br>
<br>
<div class="gmail_quote">On Wed, Jan 4, 2012 at 4:44 PM, Jan
Teske <span dir="ltr"><<a href="mailto:jan.teske@student.hpi.uni-potsdam.de" target="_blank">jan.teske@student.hpi.uni-potsdam.de</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey,<br>
<br>
I'm currently developing a small game with Squeak. Part of
it is a bunch of menus which should have background images.
Therefore I have realized them as ImageMorphs with the
respective images.<br>
Now, there are menus which sizes are determined dynamically
during the runtime of the game. That means I have to change
the size of the menus. Since I cannot do this by
manipulating 'menu extent: ...' directly, the only way I
found until now is to manipulate the image form 'menu image:
menu image scaledToSize: ...'. That works pretty well except
for one thing: I cannot change the aspect ration of the
original image with scaledToSize:. Since I do not know the
extends of my menus before the game starts, I cannot say
anything about the needed image ratio. Since my menus should
be as applicable as possible I need to be able to resize
also in a way which destroys the original scales.<br>
<br>
Is there any easy workaround for my problem or a recommended
way for creating resizable Morphs with background images?<br>
<br>
Thanks in advance!<br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
Beginners mailing list
<a href="mailto:Beginners@lists.squeakfoundation.org" target="_blank">Beginners@lists.squeakfoundation.org</a>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div>