[Cuis-dev] scaling an ImageMorph
Ezequiel Birman
ebirman77 at gmail.com
Fri Mar 21 13:02:11 PDT 2025
errata: “self“ should be “anImageMorph”. I.e.:
anImageMorph image: (anImage magnifyTo: anImageMorph morphExtent)
On Fri, 21 Mar 2025 at 19:48, Ezequiel Birman <ebirman77 at gmail.com> wrote:
> I'm not sure what are you trying to do but I'll guess that if you're
> trying to get the image fill the morphExtent, you cand send `image:` to the
> imageMorph.
> anImageMorph image: (anImage magnifyTo: self morphExtent)
>
> HTH,
>
> --
> Eze
>
> On Thu, 20 Mar 2025 at 09:00, Hilaire Fernandes via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
>> A remark, you should only magnify the form. Not sure it solves your
>> problem, though
>> Le 19/03/2025 à 22:11, Mark Volkmann via Cuis-dev a écrit :
>>
>> percent := 0.75.
>> form := Form fromFileNamed: filePath :: magnifyBy: percent.
>> morph := ImageMorph newWith: form :: scaleBy: percent.
>>
>> -- http://mamot.fr/@drgeo
>>
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20250321/4634b08f/attachment.htm>
More information about the Cuis-dev
mailing list