Giter Club home page Giter Club logo

guislice_image2c's People

Contributors

impulseadventure avatar pconti31 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

guislice_image2c's Issues

v2.00 c-array not correct on one- & two color pictures

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.