Dolphin, draw me a picture!

60 views
Skip to first unread message

F Bek

unread,
Jan 25, 2021, 6:47:15 PMJan 25
to
Beginner's question,
Dolphin Smalltalk 7.1.19

What is an app if it cannot display a picture worth a thousand words? But it doesn't seem to be an easy task in Dolphin.

While I'm still trying to figure out solutions to the other issues already raised, and then some more, the next step for my MVP would be to draw some basic geometrical figures, starting with a simple rectangle, then other Tee, Trapezoid, etc. Ideally, there should be a layer for the main figure, a layer for the dimensions and other text, and a layer for grids and axes. But I'll settle for just a rectangle as a start.

Is there any graphics plugin that would make life a bit easier? If not, where do I start with Canvas and Inkstrokes?

Thanks for reading and eventually answering.
FB

Bruno Buzzi Brassesco

unread,
Jan 26, 2021, 8:42:43 AMJan 26
to
Hi,

Take a look at Gdiplus package and classes like:
- GdiplusBitmap
- GdiplusGraphics

GdiplusGraphics exampleGdipNestedContainers.
GdiplusGraphics exampleGdipNestedContainers .

regards,
bruno

F Bek

unread,
Jan 26, 2021, 12:12:19 PMJan 26
to
Oh! Quite revealing! Thank you Bruno.
Checking the examples of GdiplusGraphics, there's a lot to digest there!
But the examples of GdiplusImage and GdiplusBitmap fail mostly; apparently some messages are not supported and some resources are missing.
Anyway, lots of new material to learn from and code to try! Is there a documentation or tutorial somewhere?

FB
___________________________________________

Bruno Buzzi Brassesco

unread,
Jan 26, 2021, 12:29:43 PMJan 26
to
Hi,
It seems that some resources are broken. Test it with the lastest Dolphin from Github and if the problem is still there create an issue on Github.

Gdiplus is pretty awesome. I have made a chess notation tool with it some time ago:
- Render chessboard (with different styles)
- Render pieces (with different styles)
- Drag and drop pieces on the chessboard
- Lot of visual effects on the chessboard

If you want something even more cool take a look at this (4 parts) tutorial by Andy Bower:
https://www.youtube.com/watch?v=NiJWcQJseLQ&t=736s

regards,
bruno

F Bek

unread,
Jan 26, 2021, 2:49:21 PMJan 26
to
Going through the videos! This is great!
Will get the latest Dolphin installable when it's available (Github is something else I'll have to learn to deal with).
Thanks again.
Reply all
Reply to author
Forward
0 new messages