Giter Site home page Giter Site logo

create Image from RGBA buffer about libgd HOT 2 OPEN

Jeevhi avatar Jeevhi commented on June 8, 2024
create Image from RGBA buffer

from libgd.

Comments (2)

vapier avatar vapier commented on June 8, 2024 1

to put into concrete terms, if we started down the path of providing pixel converters, how many would we want to support? i don't know if there's a list somewhere that ranks "common" ones that we could use to decide when to stop.

ffmpeg supports a lot which leads to a ton of boilerplate.
https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/pixfmt.h

at the very least, we could have an example program to convert RGBA of some bit depth and just point people to that to write their own.

from libgd.

cmb69 avatar cmb69 commented on June 8, 2024

Is there a way to create image from RGBA buffer and specifying parameters width, height, depth etc.

No, because that specification isn't specfic enough. Is that really an RGBA buffer, or rather an ARGB buffer (or some other order)? What are the supported ranges for the color components (8bit for all of them; 16bit; or like libgd, i.e. 8bit for RGB and 7bit for A)? Is the layout row-first or column-first? Is there some specific padding? etc.

You can, however, write your own routine which creates a GdImage manually.

from libgd.

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.