Load PNG

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

Load PNG

Post by NTech »

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.
Attachments
loadPng.zip
distribution - everything you need
(3.24 KiB) Downloaded 337 times
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: 33
Joined: Mon May 01, 2017 7:29 pm
Location: USA

Re: Load PNG

Post by NTech »

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.
Attachments
src.zip
the source code - c#
(2.79 KiB) Downloaded 290 times
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: 33
Joined: Mon May 01, 2017 7:29 pm
Location: USA

Re: Load PNG

Post by NTech »

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)
tsh73
Posts: 46
Joined: Fri May 04, 2007 12:03 pm

Re: Load PNG

Post by tsh73 »

I was long wanting to have some tool like that, royalty-free.
Dream have come true ;)
Thanks, NTech.
Post Reply