You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to create image from RGBA buffer and specifying parameters width, height, depth etc.
Currently I have modified gdImageCreateFromBmpPtr and gdImageCreateFromBmpCtx functions to take bmp_info_t as parameter. However would be nice if you can add a function, and export it.
Or am I overlooking something ?
The text was updated successfully, but these errors were encountered:
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.
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.
Is there a way to create image from RGBA buffer and specifying parameters width, height, depth etc.
Currently I have modified
gdImageCreateFromBmpPtr
andgdImageCreateFromBmpCtx
functions to takebmp_info_t
as parameter. However would be nice if you can add a function, and export it.Or am I overlooking something ?
The text was updated successfully, but these errors were encountered: