Skip to content

lite-xl/image2inl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image2inl

Utility that converts a given image into an array of RGBA bytes that can be easily included on C/C++ applications.

This utility was specially created to generate the .inl file used for the lite-xl editor since I didn't found anything public to do so and was curious about how this worked.

Compiling

gcc -lm -o image2inl image2inl.c

Usage

When using it with lite-xl make sure to generate a 64x64 png image from the projects icon.svg file since that size is the one that lite uses on the SDL_CreateRGBSurfaceFrom call to assign the icon to the application.

After that then just run:

image2inl icon.png icon.inl

References

Love2d Version

Ulhar developed a lua script for love2d that offers the same functionality and is placed on this repo with the name png2inl.lua for future reference as suggested by redtide!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published