After some years of exclusive use on macOS, I wanted to know how a project is working on WIndows 10 (Pro 2004)…
So, I loaded my Xojo,
Build for Windows,
Move the application into the shared directory,
Fired VirtualBox,
Fired the application.
Argh ! Whereis my template directory ?
OK, I copied it to the correct location (and I will have to add a post build application script…
I dropped a magazine cover and get an error (GDI+ !). By default my Xojo do not know how to load jpg images files…
I do the necessary changes, build a new version, move it, etc.
Yes ! I get my image and my icon is correctly built on screen ! Next stop is… save it to disk as standard .ico file !
Only .bmp is available ? Incredible.
How do I code that Save PushButton ?
I used ExportPicture.
Documentation and… only one format officially supported by ExportPicture. Just to be sure, I get an eye on the API2 documentation (web) and… same useless file format.
All of a sudden, I get suspicious… What about Picture.Save ?
Stop drinking right now.
OK ? Now you can laugh loudy:
Picture.Save know how to save a Picture as JPG (GIF, PNG, TIFF and… BMP too).
I am speechless…
Like said a friend 40 years ago: “What a Macintosh was built for ?”
My today answer is: to create an .ico file for Windows.
Once more: “I am speechless !”.
I am curious: do you know a 2020 development environment that is incapable of exporting an image under Windows ?
BTW: my stomach is crying loud…