pconti31 / guislice_image2c Goto Github PK
View Code? Open in Web Editor NEWGUIslice_Image2c converts BMP images to C Array for GUIslice.
License: MIT License
GUIslice_Image2c converts BMP images to C Array for GUIslice.
License: MIT License
hey. I found a bug in v2.00 when i try to create a c-array from a picture with 1 or 2 Colors. The generated C-Array looks good in GUISlice Builder, but the Arduino IDE is not able to compile this code, because of the first few rows in the array:
const unsigned char Settings_icon[2500+5] = {
0x00, // Height of image
0x32,
0x00, // Width of image
0x32,
000, // red color
093, // green color
181, // blue color
because of the number format, the decimal numbers for red and green will be interpreted as octal numbers.
Even when i change this manualy, the array is still broken. after loading the picture i can see some random pixels and my ESP32 just crash and restart.
to Avoid this problem, i can use the V1.04 of Image2C or change one Random Pixel in the Picture to force the V2.00 to interprete the picture as 3 Color Picture and generate a C-array in a different format.
in both cases, the picture in GUISlice Builder can not be transparent anymore, i always have the pink array, which indicate the transparent area. I have attach my test pictures (1 color Transparent/blue and 3 color Transparent/blue/1Pixel_different_blue) and the generated C-arrays
Settings_icon.zip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.