Can you clarify what you're trying to do, exactly?

Which interface are you primarily interested in using? ImageInput to read into 
a buffer you've allocated? ImageBuf?

What is the image you want to read? What do you mean by "not RGB"? And what do 
you want A to be in your RGBA for files without an alpha?


> On Oct 24, 2020, at 7:48 PM, Ingmania <[email protected]> wrote:
> 
> I need the pixels from images to be RGBA, regardless of how the data is 
> stored in the image (and whether or not the image contains an Alpha channel). 
> But I couldn't find a function to request the image pixels in this format (or 
> any specific format, for that matter). Assuming there isn't one, how can I 
> get get the pixels in this format? Is there an idiom to archive this?
> 
> In the documentation for ImageBufAlgo I found a way to add an alpha channel 
> to an RGB image. But what if the image is not in RGB format? 
> 

--
Larry Gritz
[email protected]




_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to