PDF4Java Reference Documentation
com.o2sol.pdf4java.pdffunctions Package / PDFSampleFunction Class / setBitsPerSample Method
The number of bits used to represent each sample.
Collapse All Expand All
In This Topic

setBitsPerSample Method
In This Topic
Sets 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 void setBitsPerSample(
       int value
    )

#### Parameters

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.