PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.images Package / PDFImage Class / setBitsPerComponent Method
The number of bits used to represent each color component.
Collapse All Expand All
In This Topic

setBitsPerComponent Method
In This Topic
Sets the bits per component.
Valid values are 1, 2, 4, 8, and (in PDF 1.5) 16.
Syntax

    public void setBitsPerComponent(
       int bpc
    )

#### Parameters

bpc
  The number of bits used to represent each color component.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | When bpc has an unsupported value.

See Also

#### Reference

PDFImage Class
PDFImage Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.