-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
13 additions
and
8 deletions.
There are no files selected for viewing
3 changes: 2 additions & 1 deletion
3
.../MorphicTutorial-Lectures.package/MotuImageMorphCreateAForm.class/instance/createAForm.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
evaluation | ||
createAForm | ||
createAForm | ||
^ Form fromFileNamed: 'D:\Users\Leon Bein\Pictures\Saved Pictures\lion-06.jpg' |
3 changes: 2 additions & 1 deletion
3
...Tutorial-Lectures.package/MotuImageMorphCreateAForm.class/instance/solutionCreateAForm.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
solution | ||
solutionCreateAForm | ||
|
||
^ Form fromFileNamed: 'C:\path\to\your\file.png' | ||
"Mind the FileDirectory uri: ... This allows OS independent file paths" | ||
^ Form fromFileNamed: (FileDirectory uri: 'C:/path/to/your/file.png') fullName |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
...hicTutorial-Lectures.package/MotuImageMorphCreateImageMorph.class/instance/openMorphIn.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
evaluation | ||
openMorphIn | ||
openMorphIn | ||
|
||
^ ImageMorph new image:(Form fromFileNamed: 'D:\Users\Leon Bein\Pictures\Saved Pictures\lion-06.jpg') |
3 changes: 2 additions & 1 deletion
3
...ial-Lectures.package/MotuImageMorphCreateImageMorph.class/instance/solutionOpenMorphIn.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
solution | ||
solutionOpenMorphIn | ||
|
||
"Again: FileDirectory uri: ..." | ||
^ ImageMorph new | ||
image: (Form fromFileNamed: 'C:\path\to\your\file.png') | ||
image: (Form fromFileNamed: (FileDirectory uri: 'C:/path/to/your/file.png') fullName) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters