pdfGetImageBitsPerComponent
Get the number of bits per component for an image.
int pdfGetImageBitsPerComponent(PDFHandle pdf, int idx)
This function returns the number of bits per component for
the
idx
th image on the page specified in the
the last call to pdfGetImages
.
C:
double low, high;
int nImgs, i, j, mask, colorSpace, w, h, nComps, bpc;
pdfGetImages(pdf, 1);
nImgs = pdfGetNumImages(pdf);
for (i = 0; i < nImgs; ++i) {
pdfGetImageInfo(pdf, i, &mask, &colorSpace, &w, &h);
nComps = pdfGetImageNumComponents(pdf, i);
bpc = pdfGetImageBitsPerComponent(pdf, i);
....
}