this is extended version of my previous post
Today I learn
You can't directly use data returned by stbi_load
function for drawing image on Xlib.
The source code is available on GitLab.
Screenshot
References
- wikipedia - What is PixMap?
- stackoverflow - What is the difference bitween Bitmap and Pixmap?
- lithium.tech - How to convert format from
stbi_load
into pixmap format.