Transform an image into an assembly variable.
Just drag & drop your PNG file to Serve.exe (or manually run the .py script with the png location as an argument) and you'll get a file containing the declaration of an assembly compatible variable.
Customization can be added if you run the application. A small interface with features like: selecting input/output location, selecting a variable name.
An input directory can be selected to convert all the images inside it. The directory input has priority over the file input in the case both are selected. Additionally, the directory should only contain image files.
The generated output is an .inc file which can be imported in any Assembly x86 code. For example, this could be used by a library with the capability to draw a canvas to show an image:
Because of the limitation of the statement definition length, the generated .inc
file will split the variable in multiple ones in case an image exceeds the horizontal length of 48px.
โจ More features on the way โจ