PDF4Java Reference Documentation
com.o2sol.pdf4java.pdffunctions Package / PDFSampleFunction Class / getBitsPerSample Method
Collapse All Expand All
In This Topic

getBitsPerSample Method
In This Topic
Gets the bits per sample.
If the function has multiple output values, each one occupies BitsPerSample bits. Valid values are 1, 2, 4, 8, 12, 16, 24, and 32.
Syntax

    public int getBitsPerSample()

#### Return Value

The number of bits used to represent each sample.
See Also

#### Reference

PDFSampleFunction Class
PDFSampleFunction Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.