Giter Site home page Giter Site logo

Comments (4)

bitbank2 avatar bitbank2 commented on September 12, 2024

The pixels are 8-bit with a 24-bit palette lookup. You can configure my existing code to deliver you the original palette and convert the pixels to 1555 yourself. Adding that option within the AnimatedGIF library doesn't make sense to me.

from animatedgif.

0x0fe avatar 0x0fe commented on September 12, 2024

i see, but how to get the alpha channel (1bit) value? it is not contained in the 565 or 888.

from animatedgif.

bitbank2 avatar bitbank2 commented on September 12, 2024

There is a single transparent color index per frame and it's part of the data passed to the draw callback (pDraw->ucTransparent). GIF doesn't support any form of alpha channel - it's an optional, single transparent color index.

from animatedgif.

0x0fe avatar 0x0fe commented on September 12, 2024

OK clear, yes, i should not call it alpha channel since it is only 1 bit transparent pixel.

from animatedgif.

Related Issues (20)

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.