[Cuis-dev] How do I get a form instance of a LayoutMorph instance? aMorph imageForm equivalent?
H. Hirzel
hannes.hirzel at gmail.com
Fri Feb 28 00:33:07 PST 2025
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'
More information about the Cuis-dev
mailing list