[Cuis-dev] How do I get a form instance of a LayoutMorph instance? aMorph imageForm equivalent?

Luciano Notarfrancesco luchiano at gmail.com
Fri Feb 28 01:33:38 PST 2025


Maybe Morph>>imageForm:depth: ?

On Fri, Feb 28, 2025 at 16:28 H. Hirzel via Cuis-dev <cuis-dev at lists.cuis.st>
wrote:

> Hi
>
> I am arranging 4 pictures in a row and would like to write the result to
> a file.
>
> However I face the problem of getting a form representation of the
> LayoutMorph instance.
>
> In Squeak that would be
>
>      row imageForm
>
> https://wiki.squeak.org/squeak/6373
>
> I searched the class hierarchy for something similar but did not find
> anything suitable (e.g. asForm, just form or something similar).
>
> How can I achieve this?
>
> Regards
>
> Hannes
>
>
>
> -------------------------------------------------------------------------------------------------------
>
> Feature require: 'Graphics-Files-Additional'.
>
> "(ImageReadWriter formFromFileNamed: 'F05.jpg') class  Form ."
>
> row := LayoutMorph newRow.
> row addMorph: (ImageMorph newWith: (ImageReadWriter formFromFileNamed:
> 'F05e.jpg')).
> row addMorph: (ImageMorph newWith: (ImageReadWriter formFromFileNamed:
> 'F06e.jpg')).
> row addMorph: (ImageMorph newWith: (ImageReadWriter formFromFileNamed:
> 'F07b-e.jpg')).
> row addMorph: (ImageMorph newWith: (ImageReadWriter formFromFileNamed:
> 'F08e.jpg')).
>
>
> JPEGReadWriter2 putForm: row imageForm quality: 100 progressiveJPEG:
> true onFileNamed: 'row1.jpg'
>
>
> --
> 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/20250228/4a889785/attachment.htm>


More information about the Cuis-dev mailing list