Load PNG

Applications written for Just BASIC in languages other than Just BASIC
NTech
Posts: 27
Joined: Mon May 01, 2017 7:29 pm
Location: USA

Load PNG

Post by NTech » Fri Jun 15, 2018 7:32 pm

Finally, JB can load PNG files with this quick and handy little tool. It requires .NET Framework 1.1 and above. And at 5.0 kb, it's small enough to release with any application. PNG images are smaller and more efficient than native BMP images.

:arrow: Please report any troubles or bugs.

Usage:

Code: Select all

run "loadPng.exe pngToConvert.png bmpOutput.bmp"
loadbmp "image", "bmpOutput.bmp" 'we have loaded the png!
kill "bmpOutput.bmp" 'let's clean up after ourselves
Please note that a png file to convert has to exist. Do not forget to clean up the converted file, thatway it does not clutter things up.
You do not have the required permissions to view the files attached to this post.
Last edited by NTech on Fri Jun 15, 2018 7:34 pm, edited 2 times in total.
8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8)

NTech
Posts: 27
Joined: Mon May 01, 2017 7:29 pm
Location: USA

Re: Load PNG

Post by NTech » Fri Jun 15, 2018 7:33 pm

This is the source code for the loadPng, written in C#. Use the most recent version of Visual Studio for the best experience.


:?: What is needed to compile this
:idea: Visual Studio and .NET 1.1+

:?: Build instructions
:idea: Open loadPNG.sln in Visual Studio and hit F5.
You do not have the required permissions to view the files attached to this post.
8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8)

NTech
Posts: 27
Joined: Mon May 01, 2017 7:29 pm
Location: USA

Re: Load PNG

Post by NTech » Tue Apr 09, 2019 6:38 pm

Update: LoadPNG should now work with JPGs too. Just pass a JPG to the exe the same way the PNG was passed.
8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8) 8)