Closed michaelrsweet closed 3 years ago
Add a function to create an image object from data, e.g.:
pdfio_obj_t *pdfioFileCreateImageObjFromData(pdfio_file_t *pdf, size_t width, size_t height, size_t bits, size_t num_colors, bool alpha, pdfio_array_t *cs, const unsigned char *data);
The function should handle creating an image mask if 'alpha' is true - num_colors is 1 to 5 and includes the alpha channel (to allow up to CMYK + A). Data order is fixed and 16-bit input is native byte order.
Should probably also rename pdfioFileCreateImageObj to pdfioFileCreateImageObjFromFile?
pdfioFileCreateImageObj
pdfioFileCreateImageObjFromFile
[master 014c5dc] Implement pdfioFileCreateImageObjFromData (Issue #15)
Add a function to create an image object from data, e.g.:
The function should handle creating an image mask if 'alpha' is true - num_colors is 1 to 5 and includes the alpha channel (to allow up to CMYK + A). Data order is fixed and 16-bit input is native byte order.