alternetsoft / AlternetUI

MIT License
22 stars 2 forks source link

Enhancement : Bitmap contructor with url param #124

Closed neoxeo closed 5 months ago

neoxeo commented 5 months ago

@generalloki

Thanks to add this option like native .Net.

In .Net, you can use : Bitmap bm = new Bitmap("Test.jpg");

In AlternetUI, you must specified a path like this : Bitmap bm = new Bitmap(PathUtils.GetAppFolder() + "Test.jpg");

Can you add code to verify if a path was given or not and if not, test if file exist in PathUtils.GetAppFolder() to open it ?

Thanks

generalloki commented 5 months ago

Great idea. I will do this.

generalloki commented 5 months ago

Done in Master

neoxeo commented 5 months ago

Test Ok, perfect !

Thanks a lot