XPM Graphics Converter ("transferring" graphics from computers and other sources)
-
i think it should be! glad it helped
-
-
But doesn't this require a means to transfer from PC to Switch? You using an Arduino or RPi Zero to emulate a keyboard?
-
@Discostew I retyped the text.
-
Excellent. Please share!
Hex is a bit easier to type, but some kind of keyboard emulation would be better! @Discostew Is it not possible to emulate a keyboard from a PC (not had time to research)? -
@jacobmph said in XPM Graphics Converter ("transferring" graphics from computers and other sources):
Excellent. Please share!
Hex is a bit easier to type, but some kind of keyboard emulation would be better! @Discostew Is it not possible to emulate a keyboard from a PC (not had time to research)?The project is shared.
-
I been trying to do that myself and have manage to create a keyboard emulator that will send all the pixel value to the switch and store it in a Array but when I try to draw the pixels with upload image function the pixels are not drawn right but I think it’s more on how the function try to draw the pixels from array I need to know how I can draw myself each individual pixel to wherever I want on the screeen with intensity of a pixel instead of full rgba let me know how u think I can do that.
-
@void00 I'm not using uploadImage myself, but it seems to works very similar to the XPM syntax. Have you set the correct dimensions of the bitmap? Do you have any example code that fails?
-
I've updated the shared version of the code now. Cleaned up some stuff and provided more syntax checking.
The new version also have a CreateXMirroredXPMImage() function, that creates a horizontally mirrored version of the image. (For truly symmetrical images, only half the pixel data is required.)
-
Shared yet a new update. One bug fix in the mirrored code, and it also now have a global _XPM_UseFilter variable, that can be changed whenever smoothing filters are needed (prior to creating the bitmap).
-
Nice, I would love to try this. So to get this you have to convert and image to xpm .. and after type the code in? that's awsome! friend code sent.
-
wow very nice, so to import an image first convert it to xpm and write out the code from that in your program?
-
@senas8 said in XPM Graphics Converter ("transferring" graphics from computers and other sources):
wow very nice, so to import an image first convert it to xpm and write out the code from that in your program?
Yes, you have a sample picture in the program that would show you how it's done.