I am developing a pure-C game and I would like to have a dynamically generated QR code as menu image. The current C API does not have a QR code generation functionality, so I introduced main.lua where I plan to generate the QR code image and set it as a menu image using setMenuImage.
I was able to generate a QR code and display it as a sprite, and I was able to generate and set a dynamic menu image, but I am having trouble combining these two.
I assume that my current issue lies in the fact that QR code is square, while the menuImage has to be exactly 400x240. As far as I can tell, there is no image crop or resize function in the Lua API. I also cannot find any "place image on top of existing image" function that would allow me to overlay the QR code on a 400x240 menuImage.
Is what I am trying to accomplish actually possible with the current SDK? How would one go about generating a 400x240 image with embedded QR code? Many thanks in advance for any hint.